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

Side by Side Diff: components/browser_sync/profile_sync_service_mock.cc

Issue 2768633003: Dynamic updating recent menu for tabs from other devices. (Closed)
Patch Set: Fixes compilation and test on Mac. Created 3 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
« no previous file with comments | « components/browser_sync/profile_sync_service_mock.h ('k') | no next file » | 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 "components/browser_sync/profile_sync_service_mock.h" 5 #include "components/browser_sync/profile_sync_service_mock.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 namespace browser_sync { 9 namespace browser_sync {
10 10
11 ProfileSyncServiceMock::ProfileSyncServiceMock(InitParams init_params) 11 ProfileSyncServiceMock::ProfileSyncServiceMock(InitParams init_params)
12 : ProfileSyncService(std::move(init_params)) { 12 : ProfileSyncService(std::move(init_params)) {
13 ON_CALL(*this, IsSyncRequested()).WillByDefault(testing::Return(true)); 13 ON_CALL(*this, IsSyncRequested()).WillByDefault(testing::Return(true));
14 } 14 }
15 15
16 ProfileSyncServiceMock::ProfileSyncServiceMock(InitParams* init_params) 16 ProfileSyncServiceMock::ProfileSyncServiceMock(InitParams* init_params)
17 : ProfileSyncServiceMock(std::move(*init_params)) {} 17 : ProfileSyncServiceMock(std::move(*init_params)) {}
18 18
19 ProfileSyncServiceMock::~ProfileSyncServiceMock() {} 19 ProfileSyncServiceMock::~ProfileSyncServiceMock() {}
20 20
21 sync_sessions::OpenTabsUIDelegate*
22 ProfileSyncServiceMock::GetOpenTabsUIDelegate() {
23 sync_sessions::OpenTabsUIDelegate* mock_delegate =
24 GetOpenTabsUIDelegateMock();
25 return mock_delegate ? mock_delegate
26 : ProfileSyncService::GetOpenTabsUIDelegate();
27 }
28
21 } // namespace browser_sync 29 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/browser_sync/profile_sync_service_mock.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698