#include "components/sync/engine/net/sync_server_connection_manager.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_timeouts.h"
#include "base/threading/thread.h"
#include "base/time/time.h"
#include "components/sync/engine/cancelation_signal.h"
#include "components/sync/engine/net/http_post_provider.h"
#include "components/sync/engine/net/http_post_provider_factory.h"
#include "net/base/net_errors.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
namespace {
class BlockingHttpPost : public HttpPostProvider { … };
class BlockingHttpPostFactory : public HttpPostProviderFactory { … };
}
TEST(SyncServerConnectionManagerTest, VeryEarlyAbortPost) { … }
TEST(SyncServerConnectionManagerTest, EarlyAbortPost) { … }
TEST(SyncServerConnectionManagerTest, AbortPost) { … }
namespace {
class FailingHttpPost : public HttpPostProvider { … };
class FailingHttpPostFactory : public HttpPostProviderFactory { … };
}
TEST(SyncServerConnectionManagerTest, FailPostWithTimedOut) { … }
}