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

Unified Diff: components/arc/file_system/test/fake_arc_file_system_operation_runner.h

Issue 2637163002: Defer ARC file system operations while ARC is booting. (Closed)
Patch Set: Addressed hashimoto's comments. Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: components/arc/file_system/test/fake_arc_file_system_operation_runner.h
diff --git a/components/arc/file_system/test/fake_arc_file_system_operation_runner.h b/components/arc/file_system/test/fake_arc_file_system_operation_runner.h
new file mode 100644
index 0000000000000000000000000000000000000000..017b5083ec14b95caf3eeb74c47e4451da964d12
--- /dev/null
+++ b/components/arc/file_system/test/fake_arc_file_system_operation_runner.h
@@ -0,0 +1,37 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_ARC_FILE_SYSTEM_FAKE_ARC_FILE_SYSTEM_OPERATION_RUNNER_H_
+#define COMPONENTS_ARC_FILE_SYSTEM_FAKE_ARC_FILE_SYSTEM_OPERATION_RUNNER_H_
+
+#include "base/macros.h"
+#include "components/arc/file_system/arc_file_system_operation_runner.h"
+
+namespace arc {
+
+// TODO(crbug.com/683049): Implement a generic fake.
+class FakeArcFileSystemOperationRunner : public ArcFileSystemOperationRunner {
+ public:
+ explicit FakeArcFileSystemOperationRunner(ArcBridgeService* bridge_service);
+ ~FakeArcFileSystemOperationRunner() override;
+
+ // ArcFileSystemOperationRunner overrides.
+ void GetFileSize(const GURL& url,
+ const GetFileSizeCallback& callback) override;
+ void OpenFileToRead(const GURL& url,
+ const OpenFileToReadCallback& callback) override;
+ void GetDocument(const std::string& authority,
+ const std::string& document_id,
+ const GetDocumentCallback& callback) override;
+ void GetChildDocuments(const std::string& authority,
+ const std::string& parent_document_id,
+ const GetChildDocumentsCallback& callback) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(FakeArcFileSystemOperationRunner);
+};
+
+} // namespace arc
+
+#endif // COMPONENTS_ARC_FILE_SYSTEM_FAKE_ARC_FILE_SYSTEM_OPERATION_RUNNER_H_

Powered by Google App Engine
This is Rietveld 408576698