OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <list> | 5 #include <list> |
6 #include <map> | 6 #include <map> |
7 | 7 |
8 #include "base/lock.h" | 8 #include "base/lock.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
11 #include "base/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
12 #include "chrome/browser/sync/engine/model_safe_worker.h" | 12 #include "chrome/browser/sync/engine/model_safe_worker.h" |
13 #include "chrome/browser/sync/engine/syncer_thread.h" | 13 #include "chrome/browser/sync/engine/syncer_thread.h" |
14 #include "chrome/browser/sync/engine/syncer_types.h" | 14 #include "chrome/browser/sync/engine/syncer_types.h" |
15 #include "chrome/browser/sync/sessions/sync_session_context.h" | 15 #include "chrome/browser/sync/sessions/sync_session_context.h" |
16 #include "chrome/browser/sync/util/channel.h" | 16 #include "chrome/browser/sync/util/channel.h" |
17 #include "chrome/test/sync/engine/mock_connection_manager.h" | 17 #include "chrome/test/sync/engine/mock_connection_manager.h" |
18 #include "chrome/test/sync/engine/test_directory_setter_upper.h" | 18 #include "chrome/test/sync/engine/test_directory_setter_upper.h" |
19 #include "chrome/test/sync/sessions/test_scoped_session_event_listener.h" | 19 #include "chrome/test/sync/sessions/test_scoped_session_event_listener.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 EXPECT_CALL(listener, OnSyncEngineEvent( | 1114 EXPECT_CALL(listener, OnSyncEngineEvent( |
1115 Field(&SyncEngineEvent::what_happened, | 1115 Field(&SyncEngineEvent::what_happened, |
1116 SyncEngineEvent::SYNCER_THREAD_EXITING))); | 1116 SyncEngineEvent::SYNCER_THREAD_EXITING))); |
1117 | 1117 |
1118 ASSERT_TRUE(Resume(&listener)); | 1118 ASSERT_TRUE(Resume(&listener)); |
1119 ASSERT_TRUE(sync_cycle_ended_event.TimedWait(max_wait_time_)); | 1119 ASSERT_TRUE(sync_cycle_ended_event.TimedWait(max_wait_time_)); |
1120 EXPECT_TRUE(syncer_thread()->Stop(2000)); | 1120 EXPECT_TRUE(syncer_thread()->Stop(2000)); |
1121 } | 1121 } |
1122 | 1122 |
1123 } // namespace browser_sync | 1123 } // namespace browser_sync |
OLD | NEW |