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

Side by Side Diff: chrome/browser/sync/test_profile_sync_service.cc

Issue 231013003: Remove Sync JS generic request/reply framework (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove js_reply_handler.h from gyp Created 6 years, 8 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
« no previous file with comments | « no previous file | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/test_profile_sync_service.h" 5 #include "chrome/browser/sync/test_profile_sync_service.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 9 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
10 #include "chrome/browser/signin/signin_manager_factory.h" 10 #include "chrome/browser/signin/signin_manager_factory.h"
11 #include "chrome/browser/sync/glue/sync_backend_host.h" 11 #include "chrome/browser/sync/glue/sync_backend_host.h"
12 #include "chrome/browser/sync/glue/sync_backend_host_core.h" 12 #include "chrome/browser/sync/glue/sync_backend_host_core.h"
13 #include "chrome/browser/sync/managed_user_signin_manager_wrapper.h" 13 #include "chrome/browser/sync/managed_user_signin_manager_wrapper.h"
14 #include "chrome/browser/sync/profile_sync_components_factory.h" 14 #include "chrome/browser/sync/profile_sync_components_factory.h"
15 #include "chrome/browser/sync/profile_sync_components_factory_mock.h" 15 #include "chrome/browser/sync/profile_sync_components_factory_mock.h"
16 #include "chrome/browser/sync/profile_sync_service_factory.h" 16 #include "chrome/browser/sync/profile_sync_service_factory.h"
17 #include "chrome/browser/sync/test/test_http_bridge_factory.h" 17 #include "chrome/browser/sync/test/test_http_bridge_factory.h"
18 #include "components/signin/core/browser/signin_manager.h" 18 #include "components/signin/core/browser/signin_manager.h"
19 #include "sync/internal_api/public/test/sync_manager_factory_for_profile_sync_te st.h" 19 #include "sync/internal_api/public/test/sync_manager_factory_for_profile_sync_te st.h"
20 #include "sync/internal_api/public/test/test_internal_components_factory.h" 20 #include "sync/internal_api/public/test/test_internal_components_factory.h"
21 #include "sync/internal_api/public/user_share.h" 21 #include "sync/internal_api/public/user_share.h"
22 #include "sync/js/js_reply_handler.h"
23 #include "sync/protocol/encryption.pb.h" 22 #include "sync/protocol/encryption.pb.h"
24 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
25 24
26 using syncer::InternalComponentsFactory; 25 using syncer::InternalComponentsFactory;
27 using syncer::TestInternalComponentsFactory; 26 using syncer::TestInternalComponentsFactory;
28 using syncer::UserShare; 27 using syncer::UserShare;
29 28
30 namespace browser_sync { 29 namespace browser_sync {
31 30
32 SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest( 31 SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest(
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 158
160 void TestProfileSyncService::OnConfigureDone( 159 void TestProfileSyncService::OnConfigureDone(
161 const browser_sync::DataTypeManager::ConfigureResult& result) { 160 const browser_sync::DataTypeManager::ConfigureResult& result) {
162 ProfileSyncService::OnConfigureDone(result); 161 ProfileSyncService::OnConfigureDone(result);
163 base::MessageLoop::current()->Quit(); 162 base::MessageLoop::current()->Quit();
164 } 163 }
165 164
166 UserShare* TestProfileSyncService::GetUserShare() const { 165 UserShare* TestProfileSyncService::GetUserShare() const {
167 return backend_->GetUserShare(); 166 return backend_->GetUserShare();
168 } 167 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698