| Index: chrome/browser/chromeos/gdata/mock_gdata_file_system.h
|
| diff --git a/chrome/browser/chromeos/gdata/mock_gdata_file_system.h b/chrome/browser/chromeos/gdata/mock_gdata_file_system.h
|
| deleted file mode 100644
|
| index e14b665814a05f4ab33a291128cffb38a55d555f..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/chromeos/gdata/mock_gdata_file_system.h
|
| +++ /dev/null
|
| @@ -1,103 +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_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
|
| -#define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
|
| -
|
| -#include <string>
|
| -
|
| -#include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h"
|
| -#include "testing/gmock/include/gmock/gmock.h"
|
| -
|
| -namespace gdata {
|
| -
|
| -// Mock for GDataFileSystemInterface.
|
| -class MockGDataFileSystem : public GDataFileSystemInterface {
|
| - public:
|
| - MockGDataFileSystem();
|
| - virtual ~MockGDataFileSystem();
|
| -
|
| - // GDataFileSystemInterface overrides.
|
| - MOCK_METHOD0(Initialize, void());
|
| - MOCK_METHOD1(AddObserver, void(Observer* observer));
|
| - MOCK_METHOD1(RemoveObserver, void(Observer* observer));
|
| - MOCK_METHOD0(StartUpdates, void());
|
| - MOCK_METHOD0(StopUpdates, void());
|
| - MOCK_METHOD0(NotifyFileSystemMounted, void());
|
| - MOCK_METHOD0(NotifyFileSystemToBeUnmounted, void());
|
| - MOCK_METHOD0(CheckForUpdates, void());
|
| - MOCK_METHOD2(GetEntryInfoByResourceId,
|
| - void(const std::string& resource_id,
|
| - const GetEntryInfoWithFilePathCallback& callback));
|
| - MOCK_METHOD3(Search, void(const std::string& search_query,
|
| - const GURL& next_feed,
|
| - const SearchCallback& callback));
|
| - MOCK_METHOD3(TransferFileFromRemoteToLocal,
|
| - void(const FilePath& local_src_file_path,
|
| - const FilePath& remote_dest_file_path,
|
| - const FileOperationCallback& callback));
|
| - MOCK_METHOD3(TransferFileFromLocalToRemote,
|
| - void(const FilePath& local_src_file_path,
|
| - const FilePath& remote_dest_file_path,
|
| - const FileOperationCallback& callback));
|
| - MOCK_METHOD2(OpenFile, void(const FilePath& file_path,
|
| - const OpenFileCallback& callback));
|
| - MOCK_METHOD2(CloseFile, void(const FilePath& file_path,
|
| - const FileOperationCallback& callback));
|
| - MOCK_METHOD3(Copy, void(const FilePath& src_file_path,
|
| - const FilePath& dest_file_path,
|
| - const FileOperationCallback& callback));
|
| - MOCK_METHOD3(Move, void(const FilePath& src_file_path,
|
| - const FilePath& dest_file_path,
|
| - const FileOperationCallback& callback));
|
| - MOCK_METHOD3(Remove, void(const FilePath& file_path,
|
| - bool is_recursive,
|
| - const FileOperationCallback& callback));
|
| - MOCK_METHOD4(CreateDirectory,
|
| - void(const FilePath& directory_path,
|
| - bool is_exclusive,
|
| - bool is_recursive,
|
| - const FileOperationCallback& callback));
|
| - MOCK_METHOD3(CreateFile,
|
| - void(const FilePath& file_path,
|
| - bool is_exclusive,
|
| - const FileOperationCallback& callback));
|
| - MOCK_METHOD3(GetFileByPath,
|
| - void(const FilePath& file_path,
|
| - const GetFileCallback& get_file_callback,
|
| - const GetContentCallback& get_content_callback));
|
| - MOCK_METHOD3(GetFileByResourceId,
|
| - void(const std::string& resource_id,
|
| - const GetFileCallback& get_file_callback,
|
| - const GetContentCallback& get_content_callback));
|
| - MOCK_METHOD2(UpdateFileByResourceId,
|
| - void(const std::string& resource_id,
|
| - const FileOperationCallback& callback));
|
| - MOCK_METHOD2(GetEntryInfoByPath, void(const FilePath& file_path,
|
| - const GetEntryInfoCallback& callback));
|
| - MOCK_METHOD2(ReadDirectoryByPath,
|
| - void(const FilePath& file_path,
|
| - const ReadDirectoryWithSettingCallback& callback));
|
| - MOCK_METHOD1(RequestDirectoryRefresh,
|
| - void(const FilePath& file_path));
|
| - MOCK_METHOD1(GetAvailableSpace,
|
| - void(const GetAvailableSpaceCallback& callback));
|
| - // This function is not mockable by gmock because scoped_ptr is not supported.
|
| - virtual void AddUploadedFile(UploadMode upload_mode,
|
| - const FilePath& file,
|
| - scoped_ptr<DocumentEntry> entry,
|
| - const FilePath& file_content_path,
|
| - DriveCache::FileOperationType cache_operation,
|
| - const base::Closure& callback) OVERRIDE {}
|
| - // This function is not mockable by gmock because scoped_ptr is not supported.
|
| - virtual void UpdateEntryData(const std::string& resource_id,
|
| - const std::string& md5,
|
| - scoped_ptr<DocumentEntry> entry,
|
| - const FilePath& file_content_path,
|
| - const base::Closure& callback) OVERRIDE {}
|
| -};
|
| -
|
| -} // namespace gdata
|
| -
|
| -#endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
|
|
|