| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/sync/engine_impl/sync_scheduler_impl.h" | 5 #include "components/sync/engine_impl/sync_scheduler_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> |
| 11 |
| 10 #include "base/bind.h" | 12 #include "base/bind.h" |
| 11 #include "base/location.h" | 13 #include "base/location.h" |
| 12 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 13 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 14 #include "base/test/test_timeouts.h" | 16 #include "base/test/test_timeouts.h" |
| 15 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "components/sync/base/cancelation_signal.h" | 18 #include "components/sync/base/cancelation_signal.h" |
| 17 #include "components/sync/base/extensions_activity.h" | 19 #include "components/sync/base/extensions_activity.h" |
| 18 #include "components/sync/base/model_type_test_util.h" | 20 #include "components/sync/base/model_type_test_util.h" |
| 19 #include "components/sync/engine_impl/backoff_delay_provider.h" | 21 #include "components/sync/engine_impl/backoff_delay_provider.h" |
| (...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1427 ASSERT_TRUE(scheduler()->IsBackingOff()); | 1429 ASSERT_TRUE(scheduler()->IsBackingOff()); |
| 1428 | 1430 |
| 1429 // Now succeed. | 1431 // Now succeed. |
| 1430 connection()->SetServerReachable(); | 1432 connection()->SetServerReachable(); |
| 1431 PumpLoopFor(2 * delta); | 1433 PumpLoopFor(2 * delta); |
| 1432 ASSERT_EQ(1, success_counter.times_called()); | 1434 ASSERT_EQ(1, success_counter.times_called()); |
| 1433 ASSERT_FALSE(scheduler()->IsBackingOff()); | 1435 ASSERT_FALSE(scheduler()->IsBackingOff()); |
| 1434 } | 1436 } |
| 1435 | 1437 |
| 1436 } // namespace syncer | 1438 } // namespace syncer |
| OLD | NEW |