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

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

Issue 2511973003: Use ArcFileSystemInstance to access files on ARC. (Closed)
Patch Set: Fix unit_tests build, and rename file_system_util. 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 <string>
9 #include <vector>
10
11 #include "components/arc/common/file_system.mojom.h"
12 #include "mojo/public/cpp/bindings/binding.h"
Yusuke Sato 2016/11/18 19:21:05 nit: is this necessary?
Shuhei Takahashi 2016/11/21 11:06:43 Not necessary, thanks.
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);
Yusuke Sato 2016/11/18 19:21:05 nit: include base/macros.h
Shuhei Takahashi 2016/11/21 11:06:43 Done.
33 };
34
35 } // namespace arc
36
37 #endif // COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698