1// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_
6#define CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_
7
8#include "chrome/browser/chromeos/drive/file_system_interface.h"
9
10namespace drive {
11
12// Dummy implementation of FileSystemInterface. All functions do nothing.
13class DummyFileSystem : public FileSystemInterface {
14 public:
15  virtual ~DummyFileSystem() {}
16  virtual void Initialize() OVERRIDE {}
17  virtual void AddObserver(FileSystemObserver* observer) OVERRIDE {}
18  virtual void RemoveObserver(FileSystemObserver* observer) OVERRIDE {}
19  virtual void CheckForUpdates() OVERRIDE {}
20  virtual void TransferFileFromRemoteToLocal(
21      const base::FilePath& remote_src_file_path,
22      const base::FilePath& local_dest_file_path,
23      const FileOperationCallback& callback) OVERRIDE {}
24  virtual void TransferFileFromLocalToRemote(
25      const base::FilePath& local_src_file_path,
26      const base::FilePath& remote_dest_file_path,
27      const FileOperationCallback& callback) OVERRIDE {}
28  virtual void OpenFile(const base::FilePath& file_path,
29                        OpenMode open_mode,
30                        const OpenFileCallback& callback) OVERRIDE {}
31  virtual void Copy(const base::FilePath& src_file_path,
32                    const base::FilePath& dest_file_path,
33                    const FileOperationCallback& callback) OVERRIDE {}
34  virtual void Move(const base::FilePath& src_file_path,
35                    const base::FilePath& dest_file_path,
36                    const FileOperationCallback& callback) OVERRIDE {}
37  virtual void Remove(const base::FilePath& file_path,
38                      bool is_recursive,
39                      const FileOperationCallback& callback) OVERRIDE {}
40  virtual void CreateDirectory(
41      const base::FilePath& directory_path,
42      bool is_exclusive,
43      bool is_recursive,
44      const FileOperationCallback& callback) OVERRIDE {}
45  virtual void CreateFile(const base::FilePath& file_path,
46                          bool is_exclusive,
47                          const FileOperationCallback& callback) OVERRIDE {}
48  virtual void TouchFile(const base::FilePath& file_path,
49                         const base::Time& last_access_time,
50                         const base::Time& last_modified_time,
51                         const FileOperationCallback& callback) OVERRIDE {}
52  virtual void TruncateFile(const base::FilePath& file_path,
53                            int64 length,
54                            const FileOperationCallback& callback) OVERRIDE {}
55  virtual void Pin(const base::FilePath& file_path,
56                   const FileOperationCallback& callback) OVERRIDE {}
57  virtual void Unpin(const base::FilePath& file_path,
58                     const FileOperationCallback& callback) OVERRIDE {}
59  virtual void GetFileByPath(const base::FilePath& file_path,
60                             const GetFileCallback& callback) OVERRIDE {}
61  virtual void GetFileByPathForSaving(
62      const base::FilePath& file_path,
63      const GetFileCallback& callback) OVERRIDE {}
64  virtual void GetFileContentByPath(
65      const base::FilePath& file_path,
66      const GetFileContentInitializedCallback& initialized_callback,
67      const google_apis::GetContentCallback& get_content_callback,
68      const FileOperationCallback& completion_callback) OVERRIDE {}
69  virtual void GetResourceEntryByPath(
70      const base::FilePath& file_path,
71      const GetResourceEntryCallback& callback) OVERRIDE {}
72  virtual void ReadDirectoryByPath(
73      const base::FilePath& file_path,
74      const ReadDirectoryCallback& callback) OVERRIDE {}
75  virtual void Search(const std::string& search_query,
76                      const GURL& next_url,
77                      const SearchCallback& callback) OVERRIDE {}
78  virtual void SearchMetadata(
79      const std::string& query,
80      int options,
81      int at_most_num_matches,
82      const SearchMetadataCallback& callback) OVERRIDE {}
83  virtual void GetAvailableSpace(
84      const GetAvailableSpaceCallback& callback) OVERRIDE {}
85  virtual void GetShareUrl(
86      const base::FilePath& file_path,
87      const GURL& embed_origin,
88      const GetShareUrlCallback& callback) OVERRIDE {}
89  virtual void GetMetadata(
90      const GetFilesystemMetadataCallback& callback) OVERRIDE {}
91  virtual void MarkCacheFileAsMounted(
92      const base::FilePath& drive_file_path,
93      const MarkMountedCallback& callback) OVERRIDE {}
94  virtual void MarkCacheFileAsUnmounted(
95      const base::FilePath& cache_file_path,
96      const FileOperationCallback& callback) OVERRIDE {}
97  virtual void GetCacheEntryByResourceId(
98      const std::string& resource_id,
99      const GetCacheEntryCallback& callback) OVERRIDE {}
100  virtual void Reload() OVERRIDE {}
101};
102
103}  // namespace drive
104
105#endif  // CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_
106