Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: chrome/browser/sync/js/js_sync_manager_observer_unittest.cc

Issue 9323015: [Sync] - In about:sync page display if the first sync after restart has taken place or not. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/js/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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 js_sync_manager_observer_.OnClearServerDataFailed(); 69 js_sync_manager_observer_.OnClearServerDataFailed();
70 js_sync_manager_observer_.OnEncryptionComplete(); 70 js_sync_manager_observer_.OnEncryptionComplete();
71 PumpLoop(); 71 PumpLoop();
72 } 72 }
73 73
74 TEST_F(JsSyncManagerObserverTest, OnSyncCycleCompleted) { 74 TEST_F(JsSyncManagerObserverTest, OnSyncCycleCompleted) {
75 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; 75 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT];
76 sessions::SyncSessionSnapshot snapshot(sessions::SyncerStatus(), 76 sessions::SyncSessionSnapshot snapshot(sessions::SyncerStatus(),
77 sessions::ErrorCounters(), 77 sessions::ErrorCounters(),
78 100, 78 100,
79 false,
80 syncable::ModelTypeSet(), 79 syncable::ModelTypeSet(),
81 download_progress_markers, 80 download_progress_markers,
82 false, 81 false,
83 true, 82 true,
84 100, 83 100,
85 8, 84 8,
86 5, 85 5,
87 false, 86 false,
88 sessions::SyncSourceInfo(), 87 sessions::SyncSourceInfo(),
89 0, 88 0,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 HandleJsEvent("onEncryptedTypesChanged", 218 HandleJsEvent("onEncryptedTypesChanged",
220 HasDetailsAsDictionary(expected_details))); 219 HasDetailsAsDictionary(expected_details)));
221 220
222 js_sync_manager_observer_.OnEncryptedTypesChanged( 221 js_sync_manager_observer_.OnEncryptedTypesChanged(
223 encrypted_types, encrypt_everything); 222 encrypted_types, encrypt_everything);
224 PumpLoop(); 223 PumpLoop();
225 } 224 }
226 225
227 } // namespace 226 } // namespace
228 } // namespace browser_sync 227 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698