| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // SystemStorage eject API browser tests. | 5 // SystemStorage eject API browser tests. |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/macros.h" |
| 8 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 10 #include "components/storage_monitor/storage_info.h" | 11 #include "components/storage_monitor/storage_info.h" |
| 11 #include "components/storage_monitor/storage_monitor.h" | 12 #include "components/storage_monitor/storage_monitor.h" |
| 12 #include "components/storage_monitor/test_storage_monitor.h" | 13 #include "components/storage_monitor/test_storage_monitor.h" |
| 13 #include "content/public/browser/render_frame_host.h" | 14 #include "content/public/browser/render_frame_host.h" |
| 14 #include "content/public/browser/render_view_host.h" | 15 #include "content/public/browser/render_view_host.h" |
| 15 #include "content/public/test/test_utils.h" | 16 #include "content/public/test/test_utils.h" |
| 16 #include "extensions/browser/api/system_storage/storage_api_test_util.h" | 17 #include "extensions/browser/api/system_storage/storage_api_test_util.h" |
| 17 #include "extensions/browser/api/system_storage/storage_info_provider.h" | 18 #include "extensions/browser/api/system_storage/storage_info_provider.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 EXPECT_EQ(kRemovableStorageData.device_id, monitor_->ejected_device()); | 102 EXPECT_EQ(kRemovableStorageData.device_id, monitor_->ejected_device()); |
| 102 | 103 |
| 103 Detach(); | 104 Detach(); |
| 104 } | 105 } |
| 105 | 106 |
| 106 IN_PROC_BROWSER_TEST_F(SystemStorageEjectApiTest, EjectBadDeviceTest) { | 107 IN_PROC_BROWSER_TEST_F(SystemStorageEjectApiTest, EjectBadDeviceTest) { |
| 107 ExecuteCmdAndCheckReply(GetHost(), "ejectFailTest()", "eject_no_such_device"); | 108 ExecuteCmdAndCheckReply(GetHost(), "ejectFailTest()", "eject_no_such_device"); |
| 108 | 109 |
| 109 EXPECT_EQ("", monitor_->ejected_device()); | 110 EXPECT_EQ("", monitor_->ejected_device()); |
| 110 } | 111 } |
| OLD | NEW |