| 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/macros.h" | 6 #include "base/macros.h" |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" | 8 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" |
| 9 #include "chrome/browser/sync/test/integration/retry_verifier.h" | 9 #include "chrome/browser/sync/test/integration/retry_verifier.h" |
| 10 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" | 10 #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" | 11 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" |
| 12 #include "chrome/browser/sync/test/integration/sync_test.h" | 12 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 13 #include "components/browser_sync/browser/profile_sync_service.h" | 13 #include "components/browser_sync/profile_sync_service.h" |
| 14 #include "net/base/network_change_notifier.h" | 14 #include "net/base/network_change_notifier.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 using bookmarks_helper::AddFolder; | 18 using bookmarks_helper::AddFolder; |
| 19 using bookmarks_helper::ModelMatchesVerifier; | 19 using bookmarks_helper::ModelMatchesVerifier; |
| 20 using syncer::SyncCycleSnapshot; | 20 using syncer::SyncCycleSnapshot; |
| 21 using sync_integration_test_util::AwaitCommitActivityCompletion; | 21 using sync_integration_test_util::AwaitCommitActivityCompletion; |
| 22 | 22 |
| 23 class SyncExponentialBackoffTest : public SyncTest { | 23 class SyncExponentialBackoffTest : public SyncTest { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 // Verify that the client goes into exponential backoff while it is unable to | 117 // Verify that the client goes into exponential backoff while it is unable to |
| 118 // reach the sync server. | 118 // reach the sync server. |
| 119 ExponentialBackoffChecker exponential_backoff_checker( | 119 ExponentialBackoffChecker exponential_backoff_checker( |
| 120 GetSyncService((0))); | 120 GetSyncService((0))); |
| 121 exponential_backoff_checker.Wait(); | 121 exponential_backoff_checker.Wait(); |
| 122 ASSERT_FALSE(exponential_backoff_checker.TimedOut()); | 122 ASSERT_FALSE(exponential_backoff_checker.TimedOut()); |
| 123 } | 123 } |
| 124 | 124 |
| 125 } // namespace | 125 } // namespace |
| OLD | NEW |