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/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/test/base/ui_test_utils.h" | 11 #include "chrome/test/base/ui_test_utils.h" |
12 #include "chromeos/dbus/cros_disks_client.h" | 12 #include "chromeos/dbus/cros_disks_client.h" |
13 #include "chromeos/disks/mock_disk_mount_manager.h" | 13 #include "chromeos/disks/mock_disk_mount_manager.h" |
14 #include "content/public/browser/browser_context.h" | 14 #include "content/public/browser/browser_context.h" |
15 #include "content/public/browser/storage_partition.h" | 15 #include "content/public/browser/storage_partition.h" |
| 16 #include "webkit/browser/fileapi/file_system_context.h" |
16 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" | 17 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" |
17 #include "webkit/fileapi/file_system_context.h" | |
18 | 18 |
19 using ::testing::_; | 19 using ::testing::_; |
20 using ::testing::ReturnRef; | 20 using ::testing::ReturnRef; |
21 | 21 |
22 using chromeos::disks::DiskMountManager; | 22 using chromeos::disks::DiskMountManager; |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 struct TestDiskInfo { | 26 struct TestDiskInfo { |
27 const char* system_path; | 27 const char* system_path; |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 chromeos::UNMOUNT_OPTIONS_NONE, _)).Times(1); | 254 chromeos::UNMOUNT_OPTIONS_NONE, _)).Times(1); |
255 | 255 |
256 EXPECT_CALL(*disk_mount_manager_mock_, disks()) | 256 EXPECT_CALL(*disk_mount_manager_mock_, disks()) |
257 .WillRepeatedly(ReturnRef(volumes_)); | 257 .WillRepeatedly(ReturnRef(volumes_)); |
258 | 258 |
259 EXPECT_CALL(*disk_mount_manager_mock_, mount_points()) | 259 EXPECT_CALL(*disk_mount_manager_mock_, mount_points()) |
260 .WillRepeatedly(ReturnRef(mount_points_)); | 260 .WillRepeatedly(ReturnRef(mount_points_)); |
261 | 261 |
262 ASSERT_TRUE(RunComponentExtensionTest("filebrowser_mount")) << message_; | 262 ASSERT_TRUE(RunComponentExtensionTest("filebrowser_mount")) << message_; |
263 } | 263 } |
OLD | NEW |