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

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

Issue 7013040: Add information about sync session and other useful data to about:sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload before commit. Created 9 years, 7 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
« no previous file with comments | « chrome/browser/sync/engine/syncapi.h ('k') | chrome/browser/sync/sessions/session_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_sync_manager_observer.h" 5 #include "chrome/browser/sync/js_sync_manager_observer.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 100, 80 100,
81 false, 81 false,
82 syncable::ModelTypeBitSet(), 82 syncable::ModelTypeBitSet(),
83 download_progress_markers, 83 download_progress_markers,
84 false, 84 false,
85 true, 85 true,
86 100, 86 100,
87 8, 87 8,
88 5, 88 5,
89 false, 89 false,
90 sessions::SyncSourceInfo()); 90 sessions::SyncSourceInfo(),
91 0);
91 DictionaryValue expected_details; 92 DictionaryValue expected_details;
92 expected_details.Set("snapshot", snapshot.ToValue()); 93 expected_details.Set("snapshot", snapshot.ToValue());
93 94
94 EXPECT_CALL(mock_router_, 95 EXPECT_CALL(mock_router_,
95 RouteJsEvent("onSyncCycleCompleted", 96 RouteJsEvent("onSyncCycleCompleted",
96 HasDetailsAsDictionary(expected_details))); 97 HasDetailsAsDictionary(expected_details)));
97 98
98 sync_manager_observer_.OnSyncCycleCompleted(&snapshot); 99 sync_manager_observer_.OnSyncCycleCompleted(&snapshot);
99 } 100 }
100 101
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 sync_manager_observer_.OnChangesApplied(syncable::ModelTypeFromInt(i), 300 sync_manager_observer_.OnChangesApplied(syncable::ModelTypeFromInt(i),
300 &trans, &changes[i], 301 &trans, &changes[i],
301 syncable::MODEL_TYPE_COUNT - i); 302 syncable::MODEL_TYPE_COUNT - i);
302 } 303 }
303 304
304 test_user_share.TearDown(); 305 test_user_share.TearDown();
305 } 306 }
306 307
307 } // namespace 308 } // namespace
308 } // namespace browser_sync 309 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncapi.h ('k') | chrome/browser/sync/sessions/session_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698