| Index: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader_unittest.cc
|
| diff --git a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader_unittest.cc b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader_unittest.cc
|
| index 0fd80e0e8595b4b15006c6f7bc97bf2b8d3074d4..e925fd5b8fb06dab6525c543edbe6e8f5b55d6cf 100644
|
| --- a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader_unittest.cc
|
| +++ b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader_unittest.cc
|
| @@ -8,7 +8,7 @@
|
| #include "base/threading/thread_task_runner_handle.h"
|
| #include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader.h"
|
| #include "components/arc/test/fake_arc_bridge_service.h"
|
| -#include "components/arc/test/fake_intent_helper_instance.h"
|
| +#include "components/arc/test/fake_file_system_instance.h"
|
| #include "content/public/test/test_browser_thread_bundle.h"
|
| #include "mojo/edk/embedder/embedder.h"
|
| #include "net/base/io_buffer.h"
|
| @@ -22,12 +22,12 @@ namespace {
|
| const char kArcUrl[] = "content://org.chromium.foo/bar";
|
| const char kData[] = "abcdefghijklmnopqrstuvwxyz";
|
|
|
| -class ArcIntentHelperInstanceTestImpl : public FakeIntentHelperInstance {
|
| +class ArcFileSystemInstanceTestImpl : public FakeFileSystemInstance {
|
| public:
|
| - explicit ArcIntentHelperInstanceTestImpl(const base::FilePath& file_path)
|
| + explicit ArcFileSystemInstanceTestImpl(const base::FilePath& file_path)
|
| : file_path_(file_path) {}
|
|
|
| - ~ArcIntentHelperInstanceTestImpl() override = default;
|
| + ~ArcFileSystemInstanceTestImpl() override = default;
|
|
|
| void GetFileSize(const mojo::String& url,
|
| const GetFileSizeCallback& callback) override {
|
| @@ -60,7 +60,7 @@ class ArcIntentHelperInstanceTestImpl : public FakeIntentHelperInstance {
|
| private:
|
| base::FilePath file_path_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperInstanceTestImpl);
|
| + DISALLOW_COPY_AND_ASSIGN(ArcFileSystemInstanceTestImpl);
|
| };
|
|
|
| class ArcContentFileSystemFileStreamReaderTest : public testing::Test {
|
| @@ -77,16 +77,16 @@ class ArcContentFileSystemFileStreamReaderTest : public testing::Test {
|
| base::FilePath path = temp_dir_.GetPath().AppendASCII("bar");
|
| ASSERT_TRUE(base::WriteFile(path, kData, arraysize(kData)));
|
|
|
| - intent_helper_.reset(new ArcIntentHelperInstanceTestImpl(path));
|
| + file_system_.reset(new ArcFileSystemInstanceTestImpl(path));
|
|
|
| - fake_arc_bridge_service_.intent_helper()->SetInstance(intent_helper_.get());
|
| + fake_arc_bridge_service_.file_system()->SetInstance(file_system_.get());
|
| }
|
|
|
| private:
|
| base::ScopedTempDir temp_dir_;
|
| content::TestBrowserThreadBundle thread_bundle_;
|
| FakeArcBridgeService fake_arc_bridge_service_;
|
| - std::unique_ptr<ArcIntentHelperInstanceTestImpl> intent_helper_;
|
| + std::unique_ptr<ArcFileSystemInstanceTestImpl> file_system_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ArcContentFileSystemFileStreamReaderTest);
|
| };
|
|
|