| 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 "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 "sync/internal_api/public/base/model_type.h" | 11 #include "sync/internal_api/public/base/model_type.h" |
| 12 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 12 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
| 13 #include "sync/internal_api/public/util/sync_string_conversions.h" |
| 13 #include "sync/internal_api/public/util/weak_handle.h" | 14 #include "sync/internal_api/public/util/weak_handle.h" |
| 14 #include "sync/js/js_event_details.h" | 15 #include "sync/js/js_event_details.h" |
| 15 #include "sync/js/js_test_util.h" | 16 #include "sync/js/js_test_util.h" |
| 16 #include "sync/protocol/sync_protocol_error.h" | 17 #include "sync/protocol/sync_protocol_error.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 19 |
| 19 namespace syncer { | 20 namespace syncer { |
| 20 namespace { | 21 namespace { |
| 21 | 22 |
| 22 using ::testing::InSequence; | 23 using ::testing::InSequence; |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 HandleJsEvent("onEncryptedTypesChanged", | 201 HandleJsEvent("onEncryptedTypesChanged", |
| 201 HasDetailsAsDictionary(expected_details))); | 202 HasDetailsAsDictionary(expected_details))); |
| 202 | 203 |
| 203 js_sync_manager_observer_.OnEncryptedTypesChanged( | 204 js_sync_manager_observer_.OnEncryptedTypesChanged( |
| 204 encrypted_types, encrypt_everything); | 205 encrypted_types, encrypt_everything); |
| 205 PumpLoop(); | 206 PumpLoop(); |
| 206 } | 207 } |
| 207 | 208 |
| 208 } // namespace | 209 } // namespace |
| 209 } // namespace syncer | 210 } // namespace syncer |
| OLD | NEW |