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/core_impl/js_sync_manager_observer.h" | 5 #include "components/sync/engine_impl/js_sync_manager_observer.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "components/sync/base/model_type.h" | 12 #include "components/sync/base/model_type.h" |
13 #include "components/sync/core/connection_status.h" | 13 #include "components/sync/engine/connection_status.h" |
14 #include "components/sync/engine/cycle/sync_cycle_snapshot.h" | 14 #include "components/sync/engine/cycle/sync_cycle_snapshot.h" |
15 #include "components/sync/engine/sync_string_conversions.h" | 15 #include "components/sync/engine/sync_string_conversions.h" |
16 #include "components/sync/js/js_event_details.h" | 16 #include "components/sync/js/js_event_details.h" |
17 #include "components/sync/js/js_test_util.h" | 17 #include "components/sync/js/js_test_util.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace syncer { | 20 namespace syncer { |
21 namespace { | 21 namespace { |
22 | 22 |
23 using ::testing::InSequence; | 23 using ::testing::InSequence; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 EXPECT_CALL(mock_js_event_handler_, | 100 EXPECT_CALL(mock_js_event_handler_, |
101 HandleJsEvent("onConnectionStatusChange", | 101 HandleJsEvent("onConnectionStatusChange", |
102 HasDetailsAsDictionary(expected_details))); | 102 HasDetailsAsDictionary(expected_details))); |
103 | 103 |
104 js_sync_manager_observer_.OnConnectionStatusChange(kStatus); | 104 js_sync_manager_observer_.OnConnectionStatusChange(kStatus); |
105 PumpLoop(); | 105 PumpLoop(); |
106 } | 106 } |
107 | 107 |
108 } // namespace | 108 } // namespace |
109 } // namespace syncer | 109 } // namespace syncer |
OLD | NEW |