| 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 "components/arc/common/file_system.mojom.h" |
| 9 #include "mojo/public/cpp/bindings/binding.h" |
| 10 |
| 11 namespace arc { |
| 12 |
| 13 class FakeFileSystemInstance : public mojom::FileSystemInstance { |
| 14 public: |
| 15 FakeFileSystemInstance(); |
| 16 |
| 17 // mojom::FileSystemInstance: |
| 18 ~FakeFileSystemInstance() override; |
| 19 |
| 20 void GetFileSize(const mojo::String& url, |
| 21 const GetFileSizeCallback& callback) override; |
| 22 |
| 23 void OpenFileToRead(const mojo::String& url, |
| 24 const OpenFileToReadCallback& callback) override; |
| 25 |
| 26 void RequestMediaScan(mojo::Array<mojom::String> paths) override; |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(FakeFileSystemInstance); |
| 30 }; |
| 31 |
| 32 } // namespace arc |
| 33 |
| 34 #endif // COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ |
| OLD | NEW |