| Index: chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h
|
| diff --git a/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h b/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5f829227174fd037082f8623e1f38642d62b3228
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h
|
| @@ -0,0 +1,50 @@
|
| +// Copyright 2014 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_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H_
|
| +#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "chrome/browser/chromeos/file_system_provider/provided_file_system_info.h"
|
| +#include "chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h"
|
| +
|
| +namespace extensions {
|
| +class EventRouter;
|
| +} // namespace extensions
|
| +
|
| +namespace chromeos {
|
| +namespace file_system_provider {
|
| +
|
| +class RequestManager;
|
| +
|
| +// Fake provided file system implementation. Does not communicate with target
|
| +// extensions. Used for unit tests.
|
| +class FakeProvidedFileSystem : public ProvidedFileSystemInterface {
|
| + public:
|
| + explicit FakeProvidedFileSystem(
|
| + const ProvidedFileSystemInfo& file_system_info);
|
| + virtual ~FakeProvidedFileSystem();
|
| +
|
| + // ProvidedFileSystemInterface overrides.
|
| + virtual bool RequestUnmount(
|
| + const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
|
| + virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE;
|
| +
|
| + // Factory callback, to be used in Service::SetFileSystemFactory(). Both
|
| + // |event_router| and |request_manager| arguments can be NULL.
|
| + static ProvidedFileSystemInterface* Create(
|
| + extensions::EventRouter* event_router,
|
| + RequestManager* request_manager,
|
| + const ProvidedFileSystemInfo& file_system_info);
|
| +
|
| + private:
|
| + ProvidedFileSystemInfo file_system_info_;
|
| + DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem);
|
| +};
|
| +
|
| +} // namespace file_system_provider
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H_
|
|
|