Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ | |
| 6 #define COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "components/arc/common/file_system.mojom.h" | |
| 12 #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.
| |
| 13 | |
| 14 namespace arc { | |
| 15 | |
| 16 class FakeFileSystemInstance : public mojom::FileSystemInstance { | |
| 17 public: | |
| 18 FakeFileSystemInstance(); | |
| 19 | |
| 20 // mojom::FileSystemInstance: | |
| 21 ~FakeFileSystemInstance() override; | |
| 22 | |
| 23 void GetFileSize(const std::string& url, | |
| 24 const GetFileSizeCallback& callback) override; | |
| 25 | |
| 26 void OpenFileToRead(const std::string& url, | |
| 27 const OpenFileToReadCallback& callback) override; | |
| 28 | |
| 29 void RequestMediaScan(const std::vector<std::string>& paths) override; | |
| 30 | |
| 31 private: | |
| 32 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.
| |
| 33 }; | |
| 34 | |
| 35 } // namespace arc | |
| 36 | |
| 37 #endif // COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ | |
| OLD | NEW |