Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Side by Side Diff: chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
7 #include "chrome/browser/sync/profile_sync_service.h"
8 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" 7 #include "chrome/browser/sync/test/integration/bookmarks_helper.h"
9 #include "chrome/browser/sync/test/integration/retry_verifier.h" 8 #include "chrome/browser/sync/test/integration/retry_verifier.h"
10 #include "chrome/browser/sync/test/integration/single_client_status_change_check er.h" 9 #include "chrome/browser/sync/test/integration/single_client_status_change_check er.h"
11 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" 10 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
12 #include "chrome/browser/sync/test/integration/sync_test.h" 11 #include "chrome/browser/sync/test/integration/sync_test.h"
12 #include "components/browser_sync/browser/profile_sync_service.h"
13 13
14 namespace { 14 namespace {
15 15
16 using bookmarks_helper::AddFolder; 16 using bookmarks_helper::AddFolder;
17 using bookmarks_helper::ModelMatchesVerifier; 17 using bookmarks_helper::ModelMatchesVerifier;
18 using syncer::sessions::SyncSessionSnapshot; 18 using syncer::sessions::SyncSessionSnapshot;
19 using sync_integration_test_util::AwaitCommitActivityCompletion; 19 using sync_integration_test_util::AwaitCommitActivityCompletion;
20 20
21 class SyncExponentialBackoffTest : public SyncTest { 21 class SyncExponentialBackoffTest : public SyncTest {
22 public: 22 public:
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // Verify that the client goes into exponential backoff while it is unable to 102 // Verify that the client goes into exponential backoff while it is unable to
103 // reach the sync server. 103 // reach the sync server.
104 ExponentialBackoffChecker exponential_backoff_checker( 104 ExponentialBackoffChecker exponential_backoff_checker(
105 GetSyncService((0))); 105 GetSyncService((0)));
106 exponential_backoff_checker.Wait(); 106 exponential_backoff_checker.Wait();
107 ASSERT_FALSE(exponential_backoff_checker.TimedOut()); 107 ASSERT_FALSE(exponential_backoff_checker.TimedOut());
108 } 108 }
109 109
110 } // namespace 110 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698