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

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

Issue 8919021: [Sync] Rename ModelEnumSet to ModelTypeSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 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/sessions/session_state.h" 5 #include "chrome/browser/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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 syncer_status.ToValue()); 119 syncer_status.ToValue());
120 120
121 ErrorCounters errors; 121 ErrorCounters errors;
122 errors.num_conflicting_commits = 250; 122 errors.num_conflicting_commits = 250;
123 scoped_ptr<DictionaryValue> expected_errors_value( 123 scoped_ptr<DictionaryValue> expected_errors_value(
124 errors.ToValue()); 124 errors.ToValue());
125 125
126 const int kNumServerChangesRemaining = 105; 126 const int kNumServerChangesRemaining = 105;
127 const bool kIsShareUsable = true; 127 const bool kIsShareUsable = true;
128 128
129 const syncable::ModelEnumSet initial_sync_ended( 129 const syncable::ModelTypeSet initial_sync_ended(
130 syncable::BOOKMARKS, syncable::PREFERENCES); 130 syncable::BOOKMARKS, syncable::PREFERENCES);
131 scoped_ptr<ListValue> expected_initial_sync_ended_value( 131 scoped_ptr<ListValue> expected_initial_sync_ended_value(
132 syncable::ModelEnumSetToValue(initial_sync_ended)); 132 syncable::ModelTypeSetToValue(initial_sync_ended));
133 133
134 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; 134 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT];
135 download_progress_markers[syncable::BOOKMARKS] = "test"; 135 download_progress_markers[syncable::BOOKMARKS] = "test";
136 download_progress_markers[syncable::APPS] = "apps"; 136 download_progress_markers[syncable::APPS] = "apps";
137 scoped_ptr<DictionaryValue> expected_download_progress_markers_value( 137 scoped_ptr<DictionaryValue> expected_download_progress_markers_value(
138 DownloadProgressMarkersToValue(download_progress_markers)); 138 DownloadProgressMarkersToValue(download_progress_markers));
139 139
140 const bool kHasMoreToSync = false; 140 const bool kHasMoreToSync = false;
141 const bool kIsSilenced = true; 141 const bool kIsSilenced = true;
142 const int kUnsyncedCount = 1053; 142 const int kUnsyncedCount = 1053;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 ExpectDictIntegerValue(kNumConflictingUpdates, *value, 182 ExpectDictIntegerValue(kNumConflictingUpdates, *value,
183 "numConflictingUpdates"); 183 "numConflictingUpdates");
184 ExpectDictBooleanValue(kDidCommitItems, *value, 184 ExpectDictBooleanValue(kDidCommitItems, *value,
185 "didCommitItems"); 185 "didCommitItems");
186 ExpectDictDictionaryValue(*expected_source_value, *value, "source"); 186 ExpectDictDictionaryValue(*expected_source_value, *value, "source");
187 } 187 }
188 188
189 } // namespace 189 } // namespace
190 } // namespace sessions 190 } // namespace sessions
191 } // namespace browser_sync 191 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/sessions/session_state.cc ('k') | chrome/browser/sync/sessions/status_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698