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

Side by Side Diff: components/sync_driver/change_processor_mock.h

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_SYNC_DRIVER_CHANGE_PROCESSOR_MOCK_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_CHANGE_PROCESSOR_MOCK_H_
6 #define COMPONENTS_SYNC_DRIVER_CHANGE_PROCESSOR_MOCK_H_ 6 #define COMPONENTS_SYNC_DRIVER_CHANGE_PROCESSOR_MOCK_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 11
10 #include "components/sync_driver/change_processor.h" 12 #include "components/sync_driver/change_processor.h"
11 #include "sync/internal_api/public/base/model_type.h" 13 #include "sync/internal_api/public/base/model_type.h"
12 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" 14 #include "sync/internal_api/public/util/unrecoverable_error_handler.h"
13 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
14 16
15 namespace sync_driver { 17 namespace sync_driver {
16 18
17 class ChangeProcessorMock 19 class ChangeProcessorMock
18 : public ChangeProcessor, public DataTypeErrorHandler{ 20 : public ChangeProcessor, public DataTypeErrorHandler{
19 public: 21 public:
20 ChangeProcessorMock(); 22 ChangeProcessorMock();
21 virtual ~ChangeProcessorMock(); 23 virtual ~ChangeProcessorMock();
22 MOCK_METHOD3(ApplyChangesFromSyncModel, 24 MOCK_METHOD3(ApplyChangesFromSyncModel,
23 void(const syncer::BaseTransaction*, int64, 25 void(const syncer::BaseTransaction*,
26 int64_t,
24 const syncer::ImmutableChangeRecordList&)); 27 const syncer::ImmutableChangeRecordList&));
25 MOCK_METHOD0(CommitChangesFromSyncModel, void()); 28 MOCK_METHOD0(CommitChangesFromSyncModel, void());
26 MOCK_METHOD0(StartImpl, void()); 29 MOCK_METHOD0(StartImpl, void());
27 MOCK_CONST_METHOD0(IsRunning, bool()); 30 MOCK_CONST_METHOD0(IsRunning, bool());
28 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&, 31 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&,
29 const std::string&)); 32 const std::string&));
30 MOCK_METHOD1(OnSingleDataTypeUnrecoverableError, 33 MOCK_METHOD1(OnSingleDataTypeUnrecoverableError,
31 void(const syncer::SyncError&)); 34 void(const syncer::SyncError&));
32 MOCK_METHOD3(CreateAndUploadError, 35 MOCK_METHOD3(CreateAndUploadError,
33 syncer::SyncError(const tracked_objects::Location&, 36 syncer::SyncError(const tracked_objects::Location&,
34 const std::string&, 37 const std::string&,
35 syncer::ModelType)); 38 syncer::ModelType));
36 }; 39 };
37 40
38 } // namespace sync_driver 41 } // namespace sync_driver
39 42
40 #endif // COMPONENTS_SYNC_DRIVER_CHANGE_PROCESSOR_MOCK_H_ 43 #endif // COMPONENTS_SYNC_DRIVER_CHANGE_PROCESSOR_MOCK_H_
OLDNEW
« no previous file with comments | « components/sync_driver/change_processor.h ('k') | components/sync_driver/data_type_encryption_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698