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

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

Issue 2511973003: Use ArcFileSystemInstance to access files on ARC. (Closed)
Patch Set: Created 4 years, 1 month 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
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 "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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698