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

Side by Side Diff: chrome/browser/sync_file_system/mock_local_change_processor.h

Issue 12315004: Migrated sync_file_type and file_change from namespace fileapi to sync_file_system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/sync_file_system/local_change_processor.h" 9 #include "chrome/browser/sync_file_system/local_change_processor.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace sync_file_system { 12 namespace sync_file_system {
13 13
14 class MockLocalChangeProcessor : public LocalChangeProcessor { 14 class MockLocalChangeProcessor : public LocalChangeProcessor {
15 public: 15 public:
16 MockLocalChangeProcessor(); 16 MockLocalChangeProcessor();
17 virtual ~MockLocalChangeProcessor(); 17 virtual ~MockLocalChangeProcessor();
18 18
19 // LocalChangeProcessor override. 19 // LocalChangeProcessor override.
20 MOCK_METHOD4(ApplyLocalChange, 20 MOCK_METHOD4(ApplyLocalChange,
21 void(const fileapi::FileChange& change, 21 void(const FileChange& change,
22 const base::FilePath& local_file_path, 22 const base::FilePath& local_file_path,
23 const fileapi::FileSystemURL& url, 23 const fileapi::FileSystemURL& url,
24 const fileapi::SyncStatusCallback& callback)); 24 const fileapi::SyncStatusCallback& callback));
25 25
26 private: 26 private:
27 void ApplyLocalChangeStub( 27 void ApplyLocalChangeStub(
28 const fileapi::FileChange& change, 28 const FileChange& change,
29 const base::FilePath& local_file_path, 29 const base::FilePath& local_file_path,
30 const fileapi::FileSystemURL& url, 30 const fileapi::FileSystemURL& url,
31 const fileapi::SyncStatusCallback& callback); 31 const fileapi::SyncStatusCallback& callback);
32 32
33 DISALLOW_COPY_AND_ASSIGN(MockLocalChangeProcessor); 33 DISALLOW_COPY_AND_ASSIGN(MockLocalChangeProcessor);
34 }; 34 };
35 35
36 } // namespace sync_file_system 36 } // namespace sync_file_system
37 37
38 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_ 38 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698