| 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 "base/macros.h" |
| 12 #include "components/arc/common/file_system.mojom.h" |
| 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); |
| 33 }; |
| 34 |
| 35 } // namespace arc |
| 36 |
| 37 #endif // COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ |
| OLD | NEW |