Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: components/arc/test/fake_file_system_instance.h

Issue 2511973003: Use ArcFileSystemInstance to access files on ARC. (Closed)
Patch Set: Rebased to ToT. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/test/fake_file_system_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/test/fake_file_system_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698