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

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: DOUBLE R..ebase 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 GURL(k_mock_url), 105 GURL(k_mock_url),
105 syncable::ModelTypeSet(), 106 syncable::ModelTypeSet(),
106 credentials, 107 credentials,
107 true); 108 true);
108 backend.Shutdown(false); 109 backend.Shutdown(false);
109 } 110 }
110 111
111 // TODO(akalin): Write more SyncBackendHost unit tests. 112 // TODO(akalin): Write more SyncBackendHost unit tests.
112 113
113 } // namespace browser_sync 114 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | chrome/browser/sync/internal_api/sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698