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/internal_api/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" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 download_progress_markers, | 81 download_progress_markers, |
82 false, | 82 false, |
83 true, | 83 true, |
84 100, | 84 100, |
85 8, | 85 8, |
86 5, | 86 5, |
87 2, | 87 2, |
88 7, | 88 7, |
89 false, | 89 false, |
90 sessions::SyncSourceInfo(), | 90 sessions::SyncSourceInfo(), |
| 91 false, |
91 0, | 92 0, |
92 base::Time::Now(), | 93 base::Time::Now(), |
93 false); | 94 false); |
94 DictionaryValue expected_details; | 95 DictionaryValue expected_details; |
95 expected_details.Set("snapshot", snapshot.ToValue()); | 96 expected_details.Set("snapshot", snapshot.ToValue()); |
96 | 97 |
97 EXPECT_CALL(mock_js_event_handler_, | 98 EXPECT_CALL(mock_js_event_handler_, |
98 HandleJsEvent("onSyncCycleCompleted", | 99 HandleJsEvent("onSyncCycleCompleted", |
99 HasDetailsAsDictionary(expected_details))); | 100 HasDetailsAsDictionary(expected_details))); |
100 | 101 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 HandleJsEvent("onEncryptedTypesChanged", | 224 HandleJsEvent("onEncryptedTypesChanged", |
224 HasDetailsAsDictionary(expected_details))); | 225 HasDetailsAsDictionary(expected_details))); |
225 | 226 |
226 js_sync_manager_observer_.OnEncryptedTypesChanged( | 227 js_sync_manager_observer_.OnEncryptedTypesChanged( |
227 encrypted_types, encrypt_everything); | 228 encrypted_types, encrypt_everything); |
228 PumpLoop(); | 229 PumpLoop(); |
229 } | 230 } |
230 | 231 |
231 } // namespace | 232 } // namespace |
232 } // namespace browser_sync | 233 } // namespace browser_sync |
OLD | NEW |