#include "services/network/pending_callback_chain.h"
#include "base/test/bind.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network {
namespace {
int SyncReturn(int result, net::CompletionOnceCallback callback) { … }
class AsyncReturn { … };
TEST(PendingCallbackChainTest, SingleSyncResultOk) { … }
TEST(PendingCallbackChainTest, SingleSyncResultError) { … }
TEST(PendingCallbackChainTest, SingleAsyncResultOk) { … }
TEST(PendingCallbackChainTest, SingleAsyncResultError) { … }
TEST(PendingCallbackChainTest, MultipleSyncResultOk) { … }
TEST(PendingCallbackChainTest, MultipleSyncResultError) { … }
TEST(PendingCallbackChainTest, MultipleSyncSameError) { … }
TEST(PendingCallbackChainTest, MultipleSyncResultDifferentError) { … }
TEST(PendingCallbackChainTest, SyncAndAsyncResultOk) { … }
TEST(PendingCallbackChainTest, MultipleAsyncResultOk) { … }
TEST(PendingCallbackChainTest, MultipleAsyncResultError) { … }
}
}