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

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

Issue 2559643002: ARC Media View: Mojo definitions. (Closed)
Patch Set: More detailed comments about SAF. 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
OLDNEW
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 class FakeFileSystemInstance : public mojom::FileSystemInstance { 16 class FakeFileSystemInstance : public mojom::FileSystemInstance {
17 public: 17 public:
18 FakeFileSystemInstance(); 18 FakeFileSystemInstance();
19 19
20 // mojom::FileSystemInstance: 20 // mojom::FileSystemInstance:
21 ~FakeFileSystemInstance() override; 21 ~FakeFileSystemInstance() override;
22 22
23 void GetChildDocuments(const std::string& authority,
24 const std::string& document_id,
25 const GetChildDocumentsCallback& callback) override;
26
27 void GetDocument(const std::string& authority,
28 const std::string& document_id,
29 const GetDocumentCallback& callback) override;
30
23 void GetFileSize(const std::string& url, 31 void GetFileSize(const std::string& url,
24 const GetFileSizeCallback& callback) override; 32 const GetFileSizeCallback& callback) override;
25 33
26 void OpenFileToRead(const std::string& url, 34 void OpenFileToRead(const std::string& url,
27 const OpenFileToReadCallback& callback) override; 35 const OpenFileToReadCallback& callback) override;
28 36
29 void RequestMediaScan(const std::vector<std::string>& paths) override; 37 void RequestMediaScan(const std::vector<std::string>& paths) override;
30 38
31 private: 39 private:
32 DISALLOW_COPY_AND_ASSIGN(FakeFileSystemInstance); 40 DISALLOW_COPY_AND_ASSIGN(FakeFileSystemInstance);
33 }; 41 };
34 42
35 } // namespace arc 43 } // namespace arc
36 44
37 #endif // COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_ 45 #endif // COMPONENTS_ARC_TEST_FAKE_FILE_SYSTEM_INSTANCE_H_
OLDNEW
« no previous file with comments | « components/arc/common/file_system.mojom ('k') | components/arc/test/fake_file_system_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698