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 "chrome/browser/sync/js/js_sync_manager_observer.h" | 5 #include "chrome/browser/sync/internal_api/js_sync_manager_observer.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/sync/js/js_event_details.h" | 11 #include "sync/js/js_event_details.h" |
12 #include "chrome/browser/sync/js/js_test_util.h" | 12 #include "sync/js/js_test_util.h" |
13 #include "chrome/browser/sync/protocol/sync_protocol_error.h" | 13 #include "sync/protocol/sync_protocol_error.h" |
14 #include "chrome/browser/sync/sessions/session_state.h" | 14 #include "sync/sessions/session_state.h" |
15 #include "chrome/browser/sync/syncable/model_type.h" | 15 #include "sync/syncable/model_type.h" |
16 #include "chrome/browser/sync/util/weak_handle.h" | 16 #include "sync/util/weak_handle.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace browser_sync { | 19 namespace browser_sync { |
20 namespace { | 20 namespace { |
21 | 21 |
22 using ::testing::InSequence; | 22 using ::testing::InSequence; |
23 using ::testing::StrictMock; | 23 using ::testing::StrictMock; |
24 | 24 |
25 class JsSyncManagerObserverTest : public testing::Test { | 25 class JsSyncManagerObserverTest : public testing::Test { |
26 protected: | 26 protected: |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 HandleJsEvent("onEncryptedTypesChanged", | 223 HandleJsEvent("onEncryptedTypesChanged", |
224 HasDetailsAsDictionary(expected_details))); | 224 HasDetailsAsDictionary(expected_details))); |
225 | 225 |
226 js_sync_manager_observer_.OnEncryptedTypesChanged( | 226 js_sync_manager_observer_.OnEncryptedTypesChanged( |
227 encrypted_types, encrypt_everything); | 227 encrypted_types, encrypt_everything); |
228 PumpLoop(); | 228 PumpLoop(); |
229 } | 229 } |
230 | 230 |
231 } // namespace | 231 } // namespace |
232 } // namespace browser_sync | 232 } // namespace browser_sync |
OLD | NEW |