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

Side by Side Diff: sync/sessions/session_state_unittest.cc

Issue 10917234: sync: make scheduling logic and job ownership more obvious. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: eof Created 8 years, 1 month 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 | « sync/internal_api/public/util/syncer_error.h ('k') | sync/sessions/sync_session.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) 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/sessions/session_state.h" 5 #include "sync/sessions/session_state.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 download_progress_markers, 83 download_progress_markers,
84 kHasMoreToSync, 84 kHasMoreToSync,
85 kIsSilenced, 85 kIsSilenced,
86 kNumEncryptionConflicts, 86 kNumEncryptionConflicts,
87 kNumHierarchyConflicts, 87 kNumHierarchyConflicts,
88 kNumSimpleConflicts, 88 kNumSimpleConflicts,
89 kNumServerConflicts, 89 kNumServerConflicts,
90 source, 90 source,
91 false, 91 false,
92 0, 92 0,
93 base::Time::Now(), 93 base::Time::Now());
94 false);
95 scoped_ptr<DictionaryValue> value(snapshot.ToValue()); 94 scoped_ptr<DictionaryValue> value(snapshot.ToValue());
96 EXPECT_EQ(20u, value->size()); 95 EXPECT_EQ(20u, value->size());
97 ExpectDictIntegerValue(model_neutral.num_successful_commits, 96 ExpectDictIntegerValue(model_neutral.num_successful_commits,
98 *value, "numSuccessfulCommits"); 97 *value, "numSuccessfulCommits");
99 ExpectDictIntegerValue(model_neutral.num_successful_bookmark_commits, 98 ExpectDictIntegerValue(model_neutral.num_successful_bookmark_commits,
100 *value, "numSuccessfulBookmarkCommits"); 99 *value, "numSuccessfulBookmarkCommits");
101 ExpectDictIntegerValue(model_neutral.num_updates_downloaded_total, 100 ExpectDictIntegerValue(model_neutral.num_updates_downloaded_total,
102 *value, "numUpdatesDownloadedTotal"); 101 *value, "numUpdatesDownloadedTotal");
103 ExpectDictIntegerValue(model_neutral.num_tombstone_updates_downloaded_total, 102 ExpectDictIntegerValue(model_neutral.num_tombstone_updates_downloaded_total,
104 *value, "numTombstoneUpdatesDownloadedTotal"); 103 *value, "numTombstoneUpdatesDownloadedTotal");
(...skipping 20 matching lines...) Expand all
125 "numSimpleConflicts"); 124 "numSimpleConflicts");
126 ExpectDictIntegerValue(kNumServerConflicts, *value, 125 ExpectDictIntegerValue(kNumServerConflicts, *value,
127 "numServerConflicts"); 126 "numServerConflicts");
128 ExpectDictDictionaryValue(*expected_source_value, *value, "source"); 127 ExpectDictDictionaryValue(*expected_source_value, *value, "source");
129 ExpectDictBooleanValue(false, *value, "notificationsEnabled"); 128 ExpectDictBooleanValue(false, *value, "notificationsEnabled");
130 } 129 }
131 130
132 } // namespace 131 } // namespace
133 } // namespace sessions 132 } // namespace sessions
134 } // namespace syncer 133 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/util/syncer_error.h ('k') | sync/sessions/sync_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698