OLD | NEW |
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 Loading... |
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 syncable::ModelTypeBitSet initial_sync_ended; | 129 const syncable::ModelEnumSet initial_sync_ended( |
130 initial_sync_ended.set(syncable::BOOKMARKS); | 130 syncable::BOOKMARKS, syncable::PREFERENCES); |
131 initial_sync_ended.set(syncable::PREFERENCES); | |
132 scoped_ptr<ListValue> expected_initial_sync_ended_value( | 131 scoped_ptr<ListValue> expected_initial_sync_ended_value( |
133 syncable::ModelTypeBitSetToValue(initial_sync_ended)); | 132 syncable::ModelEnumSetToValue(initial_sync_ended)); |
134 | 133 |
135 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; | 134 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; |
136 download_progress_markers[syncable::BOOKMARKS] = "test"; | 135 download_progress_markers[syncable::BOOKMARKS] = "test"; |
137 download_progress_markers[syncable::APPS] = "apps"; | 136 download_progress_markers[syncable::APPS] = "apps"; |
138 scoped_ptr<DictionaryValue> expected_download_progress_markers_value( | 137 scoped_ptr<DictionaryValue> expected_download_progress_markers_value( |
139 DownloadProgressMarkersToValue(download_progress_markers)); | 138 DownloadProgressMarkersToValue(download_progress_markers)); |
140 | 139 |
141 const bool kHasMoreToSync = false; | 140 const bool kHasMoreToSync = false; |
142 const bool kIsSilenced = true; | 141 const bool kIsSilenced = true; |
143 const int kUnsyncedCount = 1053; | 142 const int kUnsyncedCount = 1053; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 ExpectDictIntegerValue(kNumConflictingUpdates, *value, | 182 ExpectDictIntegerValue(kNumConflictingUpdates, *value, |
184 "numConflictingUpdates"); | 183 "numConflictingUpdates"); |
185 ExpectDictBooleanValue(kDidCommitItems, *value, | 184 ExpectDictBooleanValue(kDidCommitItems, *value, |
186 "didCommitItems"); | 185 "didCommitItems"); |
187 ExpectDictDictionaryValue(*expected_source_value, *value, "source"); | 186 ExpectDictDictionaryValue(*expected_source_value, *value, "source"); |
188 } | 187 } |
189 | 188 |
190 } // namespace | 189 } // namespace |
191 } // namespace sessions | 190 } // namespace sessions |
192 } // namespace browser_sync | 191 } // namespace browser_sync |
OLD | NEW |