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

Side by Side Diff: chrome/browser/sync/glue/data_type_controller_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_DATA_TYPE_CONTROLLER_MOCK_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_CONTROLLER_MOCK_H__
6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_CONTROLLER_MOCK_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_CONTROLLER_MOCK_H__
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/sync/glue/data_type_controller.h" 9 #include "chrome/browser/sync/glue/data_type_controller.h"
10 #include "sync/api/sync_error.h" 10 #include "sync/api/sync_error.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace browser_sync { 13 namespace browser_sync {
14 14
15 class StartCallbackMock { 15 class StartCallbackMock {
16 public: 16 public:
17 StartCallbackMock(); 17 StartCallbackMock();
18 virtual ~StartCallbackMock(); 18 virtual ~StartCallbackMock();
19 19
20 MOCK_METHOD2(Run, void(DataTypeController::StartResult result, 20 MOCK_METHOD2(Run, void(DataTypeController::StartResult result,
21 const SyncError& error)); 21 const csync::SyncError& error));
22 }; 22 };
23 23
24 class ModelLoadCallbackMock { 24 class ModelLoadCallbackMock {
25 public: 25 public:
26 ModelLoadCallbackMock(); 26 ModelLoadCallbackMock();
27 virtual ~ModelLoadCallbackMock(); 27 virtual ~ModelLoadCallbackMock();
28 28
29 MOCK_METHOD2(Run, void(syncable::ModelType, SyncError)); 29 MOCK_METHOD2(Run, void(syncable::ModelType, csync::SyncError));
30 }; 30 };
31 31
32 } // namespace browser_sync 32 } // namespace browser_sync
33 33
34 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_CONTROLLER_MOCK_H__ 34 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_CONTROLLER_MOCK_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/data_type_controller.cc ('k') | chrome/browser/sync/glue/data_type_error_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698