| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |