| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |