Chromium Code Reviews| Index: components/arc/test/fake_file_system_instance.h |
| diff --git a/components/arc/test/fake_file_system_instance.h b/components/arc/test/fake_file_system_instance.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f8c93cabceb8a3440265ac04b8f27e7cb50790e7 |
| --- /dev/null |
| +++ b/components/arc/test/fake_file_system_instance.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2016 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 COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ |
| +#define COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "components/arc/common/file_system.mojom.h" |
| +#include "mojo/public/cpp/bindings/binding.h" |
|
Yusuke Sato
2016/11/18 19:21:05
nit: is this necessary?
Shuhei Takahashi
2016/11/21 11:06:43
Not necessary, thanks.
|
| + |
| +namespace arc { |
| + |
| +class FakeFileSystemInstance : public mojom::FileSystemInstance { |
| + public: |
| + FakeFileSystemInstance(); |
| + |
| + // mojom::FileSystemInstance: |
| + ~FakeFileSystemInstance() override; |
| + |
| + void GetFileSize(const std::string& url, |
| + const GetFileSizeCallback& callback) override; |
| + |
| + void OpenFileToRead(const std::string& url, |
| + const OpenFileToReadCallback& callback) override; |
| + |
| + void RequestMediaScan(const std::vector<std::string>& paths) override; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(FakeFileSystemInstance); |
|
Yusuke Sato
2016/11/18 19:21:05
nit: include base/macros.h
Shuhei Takahashi
2016/11/21 11:06:43
Done.
|
| +}; |
| + |
| +} // namespace arc |
| + |
| +#endif // COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ |