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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "chrome/browser/extensions/api/debugger/debugger_api.h" | 11 #include "chrome/browser/extensions/api/debugger/debugger_api.h" |
12 #include "chrome/browser/extensions/extension_apitest.h" | 12 #include "chrome/browser/extensions/extension_apitest.h" |
13 #include "chrome/browser/extensions/extension_function_test_utils.h" | 13 #include "chrome/browser/extensions/extension_function_test_utils.h" |
14 #include "chrome/browser/infobars/infobar_service.h" | 14 #include "chrome/browser/infobars/infobar_service.h" |
15 #include "chrome/browser/sessions/session_tab_helper.h" | 15 #include "chrome/browser/sessions/session_tab_helper.h" |
| 16 #include "chrome/browser/ui/host_desktop.h" |
16 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
17 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
18 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/test/base/ui_test_utils.h" | 20 #include "chrome/test/base/ui_test_utils.h" |
20 #include "components/infobars/core/infobar.h" | 21 #include "components/infobars/core/infobar.h" |
21 #include "components/infobars/core/infobar_delegate.h" | 22 #include "components/infobars/core/infobar_delegate.h" |
22 #include "extensions/browser/extension_function.h" | 23 #include "extensions/browser/extension_function.h" |
23 #include "extensions/common/extension.h" | 24 #include "extensions/common/extension.h" |
24 #include "extensions/common/extension_builder.h" | 25 #include "extensions/common/extension_builder.h" |
25 #include "extensions/common/manifest_constants.h" | 26 #include "extensions/common/manifest_constants.h" |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // Detach should remove the remaining infobar. | 272 // Detach should remove the remaining infobar. |
272 detach_function = new DebuggerDetachFunction(); | 273 detach_function = new DebuggerDetachFunction(); |
273 detach_function->set_extension(extension()); | 274 detach_function->set_extension(extension()); |
274 ASSERT_TRUE(RunFunction(detach_function.get(), | 275 ASSERT_TRUE(RunFunction(detach_function.get(), |
275 base::StringPrintf("[{\"tabId\": %d}]", tab_id), | 276 base::StringPrintf("[{\"tabId\": %d}]", tab_id), |
276 browser(), extension_function_test_utils::NONE)); | 277 browser(), extension_function_test_utils::NONE)); |
277 EXPECT_EQ(0u, service1->infobar_count()); | 278 EXPECT_EQ(0u, service1->infobar_count()); |
278 } | 279 } |
279 | 280 |
280 } // namespace extensions | 281 } // namespace extensions |
OLD | NEW |