chromium/components/sync/service/sync_stopped_reporter_unittest.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/sync/service/sync_stopped_reporter.h"

#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_mock_time_message_loop_task_runner.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/sync/protocol/sync.pb.h"
#include "net/http/http_status_code.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "services/network/test/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace syncer {

const char kTestURL[] =;
const char kTestURLTrailingSlash[] =;
const char kEventURL[] =;

const char kTestUserAgent[] =;
const char kAuthToken[] =;
const char kCacheGuid[] =;
const char kBirthday[] =;

const char kAuthHeaderPrefix[] =;

class SyncStoppedReporterTest : public testing::Test {};

// Test that the event URL gets constructed correctly.
TEST_F(SyncStoppedReporterTest, EventURL) {}

// Test that the event URL gets constructed correctly with a trailing slash.
TEST_F(SyncStoppedReporterTest, EventURLWithSlash) {}

// Test that the URLFetcher gets configured correctly.
TEST_F(SyncStoppedReporterTest, FetcherConfiguration) {}

TEST_F(SyncStoppedReporterTest, HappyCase) {}

TEST_F(SyncStoppedReporterTest, ServerNotFound) {}

TEST_F(SyncStoppedReporterTest, Timeout) {}

}  // namespace syncer