| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ | 5 #ifndef COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ |
| 6 #define COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ | 6 #define COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "components/arc/common/file_system.mojom.h" | 12 #include "components/arc/common/file_system.mojom.h" |
| 13 | 13 |
| 14 namespace arc { | 14 namespace arc { |
| 15 | 15 |
| 16 // A fake implementation which returns errors for all requests or just ignores |
| 17 // them. |
| 16 class FakeFileSystemInstance : public mojom::FileSystemInstance { | 18 class FakeFileSystemInstance : public mojom::FileSystemInstance { |
| 17 public: | 19 public: |
| 18 FakeFileSystemInstance(); | 20 FakeFileSystemInstance(); |
| 19 | 21 |
| 20 // mojom::FileSystemInstance: | 22 // mojom::FileSystemInstance: |
| 21 ~FakeFileSystemInstance() override; | 23 ~FakeFileSystemInstance() override; |
| 22 | 24 |
| 23 void GetChildDocuments(const std::string& authority, | 25 void GetChildDocuments(const std::string& authority, |
| 24 const std::string& document_id, | 26 const std::string& document_id, |
| 25 const GetChildDocumentsCallback& callback) override; | 27 const GetChildDocumentsCallback& callback) override; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 36 | 38 |
| 37 void RequestMediaScan(const std::vector<std::string>& paths) override; | 39 void RequestMediaScan(const std::vector<std::string>& paths) override; |
| 38 | 40 |
| 39 private: | 41 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(FakeFileSystemInstance); | 42 DISALLOW_COPY_AND_ASSIGN(FakeFileSystemInstance); |
| 41 }; | 43 }; |
| 42 | 44 |
| 43 } // namespace arc | 45 } // namespace arc |
| 44 | 46 |
| 45 #endif // COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ | 47 #endif // COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ |
| OLD | NEW |