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

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

Issue 9978017: [Sync] - Upload the callstacks for errors so that the line number of error is in callstack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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_CHANGE_PROCESSOR_MOCK_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__
6 #define CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/sync/glue/change_processor.h" 9 #include "chrome/browser/sync/glue/change_processor.h"
10 #include "sync/syncable/model_type.h"
10 #include "sync/syncable/syncable.h" 11 #include "sync/syncable/syncable.h"
11 #include "sync/util/unrecoverable_error_handler.h" 12 #include "sync/util/unrecoverable_error_handler.h"
12 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
13 14
14 namespace browser_sync { 15 namespace browser_sync {
15 16
16 class ChangeProcessorMock 17 class ChangeProcessorMock
17 : public ChangeProcessor, public DataTypeErrorHandler{ 18 : public ChangeProcessor, public DataTypeErrorHandler{
18 public: 19 public:
19 ChangeProcessorMock(); 20 ChangeProcessorMock();
20 virtual ~ChangeProcessorMock(); 21 virtual ~ChangeProcessorMock();
21 MOCK_METHOD2(ApplyChangesFromSyncModel, 22 MOCK_METHOD2(ApplyChangesFromSyncModel,
22 void(const sync_api::BaseTransaction*, 23 void(const sync_api::BaseTransaction*,
23 const sync_api::ImmutableChangeRecordList&)); 24 const sync_api::ImmutableChangeRecordList&));
24 MOCK_METHOD0(CommitChangesFromSyncModel, void()); 25 MOCK_METHOD0(CommitChangesFromSyncModel, void());
25 MOCK_METHOD1(StartImpl, void(Profile*)); 26 MOCK_METHOD1(StartImpl, void(Profile*));
26 MOCK_METHOD0(StopImpl, void()); 27 MOCK_METHOD0(StopImpl, void());
27 MOCK_CONST_METHOD0(IsRunning, bool()); 28 MOCK_CONST_METHOD0(IsRunning, bool());
28 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&, 29 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&,
29 const std::string&)); 30 const std::string&));
30 MOCK_METHOD2(OnSingleDatatypeUnrecoverableError, 31 MOCK_METHOD2(OnSingleDatatypeUnrecoverableError,
31 void(const tracked_objects::Location&, 32 void(const tracked_objects::Location&,
32 const std::string&)); 33 const std::string&));
34 MOCK_METHOD3(CreateAndUploadError,
35 SyncError(const tracked_objects::Location&,
36 const std::string&,
37 syncable::ModelType));
33 38
34 }; 39 };
35 40
36 } // namespace browser_sync 41 } // namespace browser_sync
37 42
38 #endif // CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__ 43 #endif // CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/bookmark_model_associator.cc ('k') | chrome/browser/sync/glue/data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698