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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/callback.h" | 6 #include "base/callback.h" |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/test/test_timeouts.h" | 10 #include "base/test/test_timeouts.h" |
11 #include "chrome/browser/sync/engine/sync_scheduler.h" | 11 #include "sync/engine/sync_scheduler.h" |
12 #include "chrome/browser/sync/engine/syncer.h" | 12 #include "sync/engine/syncer.h" |
13 #include "chrome/browser/sync/sessions/test_util.h" | 13 #include "sync/sessions/test_util.h" |
14 #include "chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.h" | 14 #include "sync/test/engine/fake_model_safe_worker_registrar.h" |
15 #include "chrome/browser/sync/test/engine/mock_connection_manager.h" | 15 #include "sync/test/engine/mock_connection_manager.h" |
16 #include "chrome/browser/sync/test/engine/test_directory_setter_upper.h" | 16 #include "sync/test/engine/test_directory_setter_upper.h" |
17 #include "chrome/browser/sync/test/fake_extensions_activity_monitor.h" | 17 #include "sync/test/fake_extensions_activity_monitor.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | |
20 | 20 |
21 using base::TimeDelta; | 21 using base::TimeDelta; |
22 using base::TimeTicks; | 22 using base::TimeTicks; |
23 using testing::_; | 23 using testing::_; |
24 using testing::AtLeast; | 24 using testing::AtLeast; |
25 using testing::DoAll; | 25 using testing::DoAll; |
26 using testing::Eq; | 26 using testing::Eq; |
27 using testing::Invoke; | 27 using testing::Invoke; |
28 using testing::Mock; | 28 using testing::Mock; |
29 using testing::Return; | 29 using testing::Return; |
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 PumpLoop(); | 1156 PumpLoop(); |
1157 // Pump again to run job. | 1157 // Pump again to run job. |
1158 PumpLoop(); | 1158 PumpLoop(); |
1159 | 1159 |
1160 StopSyncScheduler(); | 1160 StopSyncScheduler(); |
1161 | 1161 |
1162 EXPECT_TRUE(expected == context()->previous_session_routing_info()); | 1162 EXPECT_TRUE(expected == context()->previous_session_routing_info()); |
1163 } | 1163 } |
1164 | 1164 |
1165 } // namespace browser_sync | 1165 } // namespace browser_sync |
OLD | NEW |