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

Side by Side Diff: sync/internal_api/sync_rollback_manager_unittest.cc

Issue 1558633002: Cleanup: Remove double semicolons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Convert CP code to a while loop, fix nit Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/internal_api/sync_rollback_manager.h" 5 #include "sync/internal_api/sync_rollback_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 79
80 MOCK_METHOD1(OnSyncCycleCompleted, 80 MOCK_METHOD1(OnSyncCycleCompleted,
81 void(const sessions::SyncSessionSnapshot&)); 81 void(const sessions::SyncSessionSnapshot&));
82 MOCK_METHOD1(OnConnectionStatusChange, void(ConnectionStatus)); 82 MOCK_METHOD1(OnConnectionStatusChange, void(ConnectionStatus));
83 MOCK_METHOD4(OnInitializationComplete, 83 MOCK_METHOD4(OnInitializationComplete,
84 void(const WeakHandle<JsBackend>&, 84 void(const WeakHandle<JsBackend>&,
85 const WeakHandle<DataTypeDebugInfoListener>&, 85 const WeakHandle<DataTypeDebugInfoListener>&,
86 bool, ModelTypeSet)); 86 bool, ModelTypeSet));
87 MOCK_METHOD1(OnActionableError, void(const SyncProtocolError&)); 87 MOCK_METHOD1(OnActionableError, void(const SyncProtocolError&));
88 MOCK_METHOD1(OnMigrationRequested, void(ModelTypeSet));; 88 MOCK_METHOD1(OnMigrationRequested, void(ModelTypeSet));
89 MOCK_METHOD1(OnProtocolEvent, void(const ProtocolEvent&)); 89 MOCK_METHOD1(OnProtocolEvent, void(const ProtocolEvent&));
90 90
91 void OnConfigDone(bool success) { 91 void OnConfigDone(bool success) {
92 EXPECT_TRUE(success); 92 EXPECT_TRUE(success);
93 } 93 }
94 94
95 int64_t CreateEntry(UserShare* user_share, 95 int64_t CreateEntry(UserShare* user_share,
96 ModelType type, 96 ModelType type,
97 const std::string& client_tag) { 97 const std::string& client_tag) {
98 WriteTransaction trans(FROM_HERE, user_share); 98 WriteTransaction trans(FROM_HERE, user_share);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // Test graceful shutdown on initialization failure. 260 // Test graceful shutdown on initialization failure.
261 scoped_ptr<SyncRollbackManager> rollback_manager( 261 scoped_ptr<SyncRollbackManager> rollback_manager(
262 new SyncRollbackManager); 262 new SyncRollbackManager);
263 InitManager(rollback_manager.get(), ModelTypeSet(PREFERENCES), NULL, 263 InitManager(rollback_manager.get(), ModelTypeSet(PREFERENCES), NULL,
264 InternalComponentsFactory::STORAGE_ON_DISK); 264 InternalComponentsFactory::STORAGE_ON_DISK);
265 } 265 }
266 266
267 } // anonymous namespace 267 } // anonymous namespace
268 268
269 } // namespace syncer 269 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698