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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_unittest.cc

Issue 7669073: [Sync] Add support for enabling session sync remotely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor + address comments Created 9 years, 4 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 | 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/glue/sync_backend_host.h" 5 #include "chrome/browser/sync/glue/sync_backend_host.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 24 matching lines...) Expand all
35 MOCK_METHOD2(OnBackendInitialized, void(const WeakHandle<JsBackend>&, bool)); 35 MOCK_METHOD2(OnBackendInitialized, void(const WeakHandle<JsBackend>&, bool));
36 MOCK_METHOD0(OnSyncCycleCompleted, void()); 36 MOCK_METHOD0(OnSyncCycleCompleted, void());
37 MOCK_METHOD0(OnAuthError, void()); 37 MOCK_METHOD0(OnAuthError, void());
38 MOCK_METHOD0(OnStopSyncingPermanently, void()); 38 MOCK_METHOD0(OnStopSyncingPermanently, void());
39 MOCK_METHOD0(OnClearServerDataSucceeded, void()); 39 MOCK_METHOD0(OnClearServerDataSucceeded, void());
40 MOCK_METHOD0(OnClearServerDataFailed, void()); 40 MOCK_METHOD0(OnClearServerDataFailed, void());
41 MOCK_METHOD1(OnPassphraseRequired, void(sync_api::PassphraseRequiredReason)); 41 MOCK_METHOD1(OnPassphraseRequired, void(sync_api::PassphraseRequiredReason));
42 MOCK_METHOD0(OnPassphraseAccepted, void()); 42 MOCK_METHOD0(OnPassphraseAccepted, void());
43 MOCK_METHOD1(OnEncryptionComplete, void(const syncable::ModelTypeSet&)); 43 MOCK_METHOD1(OnEncryptionComplete, void(const syncable::ModelTypeSet&));
44 MOCK_METHOD1(OnMigrationNeededForTypes, void(const syncable::ModelTypeSet&)); 44 MOCK_METHOD1(OnMigrationNeededForTypes, void(const syncable::ModelTypeSet&));
45 MOCK_METHOD1(OnDataTypesChanged, void(const syncable::ModelTypeSet&));
45 }; 46 };
46 47
47 } // namespace 48 } // namespace
48 49
49 class SyncBackendHostTest : public TestingBrowserProcessTest { 50 class SyncBackendHostTest : public TestingBrowserProcessTest {
50 protected: 51 protected:
51 SyncBackendHostTest() 52 SyncBackendHostTest()
52 : ui_thread_(BrowserThread::UI, &ui_loop_), 53 : ui_thread_(BrowserThread::UI, &ui_loop_),
53 io_thread_(BrowserThread::IO) {} 54 io_thread_(BrowserThread::IO) {}
54 55
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 &routing_info, sync_api::CONFIGURE_REASON_RECONFIGURATION, 197 &routing_info, sync_api::CONFIGURE_REASON_RECONFIGURATION,
197 &state); 198 &state);
198 199
199 EXPECT_TRUE(routing_info.empty()); 200 EXPECT_TRUE(routing_info.empty());
200 } 201 }
201 } 202 }
202 203
203 // TODO(akalin): Write more SyncBackendHost unit tests. 204 // TODO(akalin): Write more SyncBackendHost unit tests.
204 205
205 } // namespace browser_sync 206 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698