blob: f2834ca2ecce674ab6247ef86d6ecf095fbcdbce [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/test/do_nothing_promise.h"
namespace base {
DoNothingPromiseBuilder::operator WrappedPromise() const {
return WrappedPromise(internal::NoOpPromiseExecutor::Create(
from_here, can_resolve, can_reject, reject_policy));
}
DoNothingPromiseBuilder::operator scoped_refptr<internal::AbstractPromise>()
const {
return WrappedPromise(internal::NoOpPromiseExecutor::Create(
from_here, can_resolve, can_reject, reject_policy))
.TakeForTesting();
}
} // namespace base