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 #include <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/linked_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
11 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
12 #include "components/storage_monitor/storage_monitor.h" | 13 #include "components/storage_monitor/storage_monitor.h" |
13 #include "components/storage_monitor/test_storage_monitor.h" | 14 #include "components/storage_monitor/test_storage_monitor.h" |
14 #include "extensions/browser/api/system_storage/storage_api_test_util.h" | 15 #include "extensions/browser/api/system_storage/storage_api_test_util.h" |
15 #include "extensions/browser/api/system_storage/storage_info_provider.h" | 16 #include "extensions/browser/api/system_storage/storage_info_provider.h" |
16 #include "extensions/shell/test/shell_apitest.h" | 17 #include "extensions/shell/test/shell_apitest.h" |
17 #include "extensions/test/extension_test_message_listener.h" | 18 #include "extensions/test/extension_test_message_listener.h" |
18 #include "extensions/test/result_catcher.h" | 19 #include "extensions/test/result_catcher.h" |
19 | 20 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 removable_storage_transient_id, false); | 142 removable_storage_transient_id, false); |
142 | 143 |
143 // Simulate triggering onDetached event. | 144 // Simulate triggering onDetached event. |
144 ASSERT_TRUE(detach_listener.WaitUntilSatisfied()); | 145 ASSERT_TRUE(detach_listener.WaitUntilSatisfied()); |
145 DetachRemovableStorage(kRemovableStorageData.device_id); | 146 DetachRemovableStorage(kRemovableStorageData.device_id); |
146 | 147 |
147 ASSERT_TRUE(detach_device_id_listener.WaitUntilSatisfied()); | 148 ASSERT_TRUE(detach_device_id_listener.WaitUntilSatisfied()); |
148 | 149 |
149 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); | 150 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
150 } | 151 } |
OLD | NEW |