| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 class FileSystemProviderProvidedFileSystemTest : public testing::Test { | 79 class FileSystemProviderProvidedFileSystemTest : public testing::Test { |
| 80 protected: | 80 protected: |
| 81 FileSystemProviderProvidedFileSystemTest() {} | 81 FileSystemProviderProvidedFileSystemTest() {} |
| 82 virtual ~FileSystemProviderProvidedFileSystemTest() {} | 82 virtual ~FileSystemProviderProvidedFileSystemTest() {} |
| 83 | 83 |
| 84 virtual void SetUp() OVERRIDE { | 84 virtual void SetUp() OVERRIDE { |
| 85 profile_.reset(new TestingProfile); | 85 profile_.reset(new TestingProfile); |
| 86 event_router_.reset(new FakeEventRouter(profile_.get())); | 86 event_router_.reset(new FakeEventRouter(profile_.get())); |
| 87 base::FilePath mount_path = | 87 base::FilePath mount_path = |
| 88 util::GetMountPath(profile_.get(), kExtensionId, kFileSystemId); | 88 util::GetMountPointPath(profile_.get(), kExtensionId, kFileSystemId); |
| 89 file_system_info_.reset(new ProvidedFileSystemInfo( | 89 file_system_info_.reset(new ProvidedFileSystemInfo( |
| 90 kExtensionId, kFileSystemId, kFileSystemName, mount_path)); | 90 kExtensionId, kFileSystemId, kFileSystemName, mount_path)); |
| 91 provided_file_system_.reset( | 91 provided_file_system_.reset( |
| 92 new ProvidedFileSystem(event_router_.get(), *file_system_info_.get())); | 92 new ProvidedFileSystem(event_router_.get(), *file_system_info_.get())); |
| 93 } | 93 } |
| 94 | 94 |
| 95 content::TestBrowserThreadBundle thread_bundle_; | 95 content::TestBrowserThreadBundle thread_bundle_; |
| 96 scoped_ptr<TestingProfile> profile_; | 96 scoped_ptr<TestingProfile> profile_; |
| 97 scoped_ptr<FakeEventRouter> event_router_; | 97 scoped_ptr<FakeEventRouter> event_router_; |
| 98 scoped_ptr<ProvidedFileSystemInfo> file_system_info_; | 98 scoped_ptr<ProvidedFileSystemInfo> file_system_info_; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 request_id, base::File::FILE_ERROR_NOT_FOUND); | 170 request_id, base::File::FILE_ERROR_NOT_FOUND); |
| 171 EXPECT_TRUE(reply_result); | 171 EXPECT_TRUE(reply_result); |
| 172 | 172 |
| 173 // Callback should be called. Verify the error code. | 173 // Callback should be called. Verify the error code. |
| 174 ASSERT_TRUE(logger.error()); | 174 ASSERT_TRUE(logger.error()); |
| 175 EXPECT_EQ(base::File::FILE_ERROR_NOT_FOUND, *logger.error()); | 175 EXPECT_EQ(base::File::FILE_ERROR_NOT_FOUND, *logger.error()); |
| 176 } | 176 } |
| 177 | 177 |
| 178 } // namespace file_system_provider | 178 } // namespace file_system_provider |
| 179 } // namespace chromeos | 179 } // namespace chromeos |
| OLD | NEW |