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 "sync/internal_api/js_sync_manager_observer.h" | 5 #include "sync/internal_api/js_sync_manager_observer.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/location.h" | 9 #include "base/location.h" |
11 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
12 #include "base/values.h" | 11 #include "base/values.h" |
13 #include "sync/internal_api/public/base/model_type.h" | 12 #include "sync/internal_api/public/base/model_type.h" |
14 #include "sync/internal_api/public/connection_status.h" | 13 #include "sync/internal_api/public/connection_status.h" |
15 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 14 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
16 #include "sync/internal_api/public/util/sync_string_conversions.h" | 15 #include "sync/internal_api/public/util/sync_string_conversions.h" |
17 #include "sync/internal_api/public/util/weak_handle.h" | 16 #include "sync/internal_api/public/util/weak_handle.h" |
18 #include "sync/js/js_event_details.h" | 17 #include "sync/js/js_event_details.h" |
19 #include "sync/js/js_test_util.h" | 18 #include "sync/js/js_test_util.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 EXPECT_CALL(mock_js_event_handler_, | 116 EXPECT_CALL(mock_js_event_handler_, |
118 HandleJsEvent("onConnectionStatusChange", | 117 HandleJsEvent("onConnectionStatusChange", |
119 HasDetailsAsDictionary(expected_details))); | 118 HasDetailsAsDictionary(expected_details))); |
120 | 119 |
121 js_sync_manager_observer_.OnConnectionStatusChange(kStatus); | 120 js_sync_manager_observer_.OnConnectionStatusChange(kStatus); |
122 PumpLoop(); | 121 PumpLoop(); |
123 } | 122 } |
124 | 123 |
125 } // namespace | 124 } // namespace |
126 } // namespace syncer | 125 } // namespace syncer |
OLD | NEW |