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

Unified Diff: chrome/browser/chromeos/drive/mock_file_system.h

Issue 16321002: Rewrite DownloadHandlerTest using DummyFileSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/mock_file_system.h
diff --git a/chrome/browser/chromeos/drive/mock_file_system.h b/chrome/browser/chromeos/drive/mock_file_system.h
deleted file mode 100644
index 3472e9c260737ed3be8b2ecb5df478ace6077f01..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/drive/mock_file_system.h
+++ /dev/null
@@ -1,125 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_FILE_SYSTEM_H_
-#define CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_FILE_SYSTEM_H_
-
-#include <string>
-
-#include "chrome/browser/chromeos/drive/file_system_interface.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace drive {
-
-class FileSystemObserver;
-
-// Mock for FileSystemInterface.
-class MockFileSystem : public FileSystemInterface {
- public:
- MockFileSystem();
- virtual ~MockFileSystem();
-
- // FileSystemInterface overrides.
- MOCK_METHOD0(Initialize, void());
- MOCK_METHOD1(AddObserver, void(FileSystemObserver* observer));
- MOCK_METHOD1(RemoveObserver,
- void(FileSystemObserver* observer));
- MOCK_METHOD0(CheckForUpdates, void());
- MOCK_METHOD2(GetResourceEntryById,
- void(const std::string& resource_id,
- const GetResourceEntryCallback& callback));
- MOCK_METHOD3(Search, void(const std::string& search_query,
- const GURL& next_url,
- const SearchCallback& callback));
- MOCK_METHOD4(SearchMetadata, void(const std::string& query,
- int options,
- int at_most_num_matches,
- const SearchMetadataCallback& callback));
- MOCK_METHOD3(TransferFileFromRemoteToLocal,
- void(const base::FilePath& local_src_file_path,
- const base::FilePath& remote_dest_file_path,
- const FileOperationCallback& callback));
- MOCK_METHOD3(TransferFileFromLocalToRemote,
- void(const base::FilePath& local_src_file_path,
- const base::FilePath& remote_dest_file_path,
- const FileOperationCallback& callback));
- MOCK_METHOD2(OpenFile, void(const base::FilePath& file_path,
- const OpenFileCallback& callback));
- MOCK_METHOD2(CloseFile, void(const base::FilePath& file_path,
- const FileOperationCallback& callback));
- MOCK_METHOD3(Copy, void(const base::FilePath& src_file_path,
- const base::FilePath& dest_file_path,
- const FileOperationCallback& callback));
- MOCK_METHOD3(Move, void(const base::FilePath& src_file_path,
- const base::FilePath& dest_file_path,
- const FileOperationCallback& callback));
- MOCK_METHOD3(Remove, void(const base::FilePath& file_path,
- bool is_recursive,
- const FileOperationCallback& callback));
- MOCK_METHOD4(CreateDirectory,
- void(const base::FilePath& directory_path,
- bool is_exclusive,
- bool is_recursive,
- const FileOperationCallback& callback));
- MOCK_METHOD3(CreateFile,
- void(const base::FilePath& file_path,
- bool is_exclusive,
- const FileOperationCallback& callback));
- MOCK_METHOD4(TouchFile,
- void(const base::FilePath& file_path,
- const base::Time& last_access_time,
- const base::Time& last_modified_time,
- const FileOperationCallback& callback));
- MOCK_METHOD2(Pin, void(const base::FilePath& file_path,
- const FileOperationCallback& callback));
- MOCK_METHOD2(Unpin, void(const base::FilePath& file_path,
- const FileOperationCallback& callback));
- MOCK_METHOD2(GetFileByPath,
- void(const base::FilePath& file_path,
- const GetFileCallback& callback));
- MOCK_METHOD4(
- GetFileByResourceId,
- void(const std::string& resource_id,
- const ClientContext& context,
- const GetFileCallback& get_file_callback,
- const google_apis::GetContentCallback& get_content_callback));
- MOCK_METHOD4(
- GetFileContentByPath,
- void(const base::FilePath& file_path,
- const GetFileContentInitializedCallback& initialized_callback,
- const google_apis::GetContentCallback& get_content_callback,
- const FileOperationCallback& completion_callback));
- MOCK_METHOD3(UpdateFileByResourceId,
- void(const std::string& resource_id,
- const ClientContext& context,
- const FileOperationCallback& callback));
- MOCK_METHOD2(GetResourceEntryByPath,
- void(const base::FilePath& file_path,
- const GetResourceEntryCallback& callback));
- MOCK_METHOD2(ReadDirectoryByPath,
- void(const base::FilePath& file_path,
- const ReadDirectoryWithSettingCallback& callback));
- MOCK_METHOD2(RefreshDirectory,
- void(const base::FilePath& file_path,
- const FileOperationCallback& callback));
- MOCK_METHOD1(GetAvailableSpace,
- void(const GetAvailableSpaceCallback& callback));
- MOCK_METHOD1(GetMetadata,
- void(const GetFilesystemMetadataCallback& callback));
- MOCK_METHOD2(MarkCacheFileAsMounted,
- void(const base::FilePath& drive_file_path,
- const OpenFileCallback& callback));
- MOCK_METHOD2(MarkCacheFileAsUnmounted,
- void(const base::FilePath& cache_file_path,
- const FileOperationCallback& callback));
- MOCK_METHOD3(GetCacheEntryByResourceId,
- void(const std::string& resource_id,
- const std::string& md5,
- const GetCacheEntryCallback& callback));
- MOCK_METHOD0(Reload, void());
-};
-
-} // namespace drive
-
-#endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_FILE_SYSTEM_H_
« no previous file with comments | « chrome/browser/chromeos/drive/download_handler_unittest.cc ('k') | chrome/browser/chromeos/drive/mock_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698