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

Side by Side Diff: chrome/browser/sync/glue/model_associator_mock.h

Issue 10662035: [Sync] Put everything in sync/api into csync namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 8 years, 5 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) 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 #ifndef CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__
6 #define CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__
7 #pragma once 7 #pragma once
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "chrome/browser/sync/glue/model_associator.h" 10 #include "chrome/browser/sync/glue/model_associator.h"
11 #include "sync/api/sync_error.h" 11 #include "sync/api/sync_error.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace browser_sync { 14 namespace browser_sync {
15 15
16 ACTION_P(SetSyncError, type) { 16 ACTION_P(SetSyncError, type) {
17 arg0->Reset(FROM_HERE, "test", type); 17 arg0->Reset(FROM_HERE, "test", type);
18 } 18 }
19 19
20 class ModelAssociatorMock : public AssociatorInterface { 20 class ModelAssociatorMock : public AssociatorInterface {
21 public: 21 public:
22 ModelAssociatorMock(); 22 ModelAssociatorMock();
23 virtual ~ModelAssociatorMock(); 23 virtual ~ModelAssociatorMock();
24 24
25 MOCK_METHOD0(AssociateModels, SyncError()); 25 MOCK_METHOD0(AssociateModels, csync::SyncError());
26 MOCK_METHOD0(DisassociateModels, SyncError()); 26 MOCK_METHOD0(DisassociateModels, csync::SyncError());
27 MOCK_METHOD1(SyncModelHasUserCreatedNodes, bool(bool* has_nodes)); 27 MOCK_METHOD1(SyncModelHasUserCreatedNodes, bool(bool* has_nodes));
28 MOCK_METHOD0(AbortAssociation, void()); 28 MOCK_METHOD0(AbortAssociation, void());
29 MOCK_METHOD0(CryptoReadyIfNecessary, bool()); 29 MOCK_METHOD0(CryptoReadyIfNecessary, bool());
30 }; 30 };
31 31
32 } // namespace browser_sync 32 } // namespace browser_sync
33 33
34 #endif // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__ 34 #endif // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/model_associator.h ('k') | chrome/browser/sync/glue/new_non_frontend_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698