OLD | NEW |
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_REMOTE_FILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
12 #include "chrome/browser/sync_file_system/file_status_observer.h" | 12 #include "chrome/browser/sync_file_system/file_status_observer.h" |
13 #include "chrome/browser/sync_file_system/mock_local_change_processor.h" | 13 #include "chrome/browser/sync_file_system/mock_local_change_processor.h" |
14 #include "chrome/browser/sync_file_system/remote_change_processor.h" | 14 #include "chrome/browser/sync_file_system/remote_change_processor.h" |
15 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" | 15 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "webkit/fileapi/syncable/sync_callbacks.h" | 18 #include "webkit/browser/fileapi/syncable/sync_callbacks.h" |
19 #include "webkit/fileapi/syncable/sync_direction.h" | 19 #include "webkit/browser/fileapi/syncable/sync_direction.h" |
20 #include "webkit/fileapi/syncable/sync_file_metadata.h" | 20 #include "webkit/browser/fileapi/syncable/sync_file_metadata.h" |
21 | 21 |
22 namespace sync_file_system { | 22 namespace sync_file_system { |
23 | 23 |
24 class MockRemoteFileSyncService : public RemoteFileSyncService { | 24 class MockRemoteFileSyncService : public RemoteFileSyncService { |
25 public: | 25 public: |
26 static const char kServiceName[]; | 26 static const char kServiceName[]; |
27 | 27 |
28 MockRemoteFileSyncService(); | 28 MockRemoteFileSyncService(); |
29 virtual ~MockRemoteFileSyncService(); | 29 virtual ~MockRemoteFileSyncService(); |
30 | 30 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 ObserverList<FileStatusObserver> file_status_observers_; | 91 ObserverList<FileStatusObserver> file_status_observers_; |
92 | 92 |
93 ConflictResolutionPolicy conflict_resolution_policy_; | 93 ConflictResolutionPolicy conflict_resolution_policy_; |
94 | 94 |
95 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService); | 95 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService); |
96 }; | 96 }; |
97 | 97 |
98 } // namespace sync_file_system | 98 } // namespace sync_file_system |
99 | 99 |
100 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ | 100 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ |
OLD | NEW |