| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stdio.h> | 5 #include <stdio.h> |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "chrome/browser/chromeos/disks/mock_disk_mount_manager.h" | |
| 9 #include "chrome/browser/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/test/base/ui_test_utils.h" | 11 #include "chrome/test/base/ui_test_utils.h" |
| 12 #include "chromeos/disks/mock_disk_mount_manager.h" |
| 13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 14 #include "webkit/fileapi/file_system_context.h" | 14 #include "webkit/fileapi/file_system_context.h" |
| 15 #include "webkit/fileapi/file_system_mount_point_provider.h" | 15 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 16 | 16 |
| 17 using ::testing::_; | 17 using ::testing::_; |
| 18 using ::testing::AnyNumber; | 18 using ::testing::AnyNumber; |
| 19 using ::testing::ReturnRef; | 19 using ::testing::ReturnRef; |
| 20 using ::testing::StrEq; | 20 using ::testing::StrEq; |
| 21 using content::BrowserContext; | 21 using content::BrowserContext; |
| 22 | 22 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 UnmountPath(StrEq("/media/archive/archive_mount_path"))).Times(1); | 242 UnmountPath(StrEq("/media/archive/archive_mount_path"))).Times(1); |
| 243 | 243 |
| 244 EXPECT_CALL(*disk_mount_manager_mock_, disks()) | 244 EXPECT_CALL(*disk_mount_manager_mock_, disks()) |
| 245 .WillRepeatedly(ReturnRef(volumes_)); | 245 .WillRepeatedly(ReturnRef(volumes_)); |
| 246 | 246 |
| 247 EXPECT_CALL(*disk_mount_manager_mock_, mount_points()) | 247 EXPECT_CALL(*disk_mount_manager_mock_, mount_points()) |
| 248 .WillRepeatedly(ReturnRef(mount_points_)); | 248 .WillRepeatedly(ReturnRef(mount_points_)); |
| 249 | 249 |
| 250 ASSERT_TRUE(RunComponentExtensionTest("filebrowser_mount")) << message_; | 250 ASSERT_TRUE(RunComponentExtensionTest("filebrowser_mount")) << message_; |
| 251 } | 251 } |
| OLD | NEW |