| 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 // Contains holistic tests of the bindings infrastructure | 5 // Contains holistic tests of the bindings infrastructure |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/api/permissions/permissions_api.h" | 7 #include "chrome/browser/extensions/api/permissions/permissions_api.h" |
| 8 #include "chrome/browser/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/test/base/ui_test_utils.h" | |
| 11 #include "content/public/test/browser_test_utils.h" | 10 #include "content/public/test/browser_test_utils.h" |
| 12 #include "extensions/browser/extension_host.h" | 11 #include "extensions/browser/extension_host.h" |
| 13 #include "extensions/browser/process_manager.h" | 12 #include "extensions/browser/process_manager.h" |
| 14 #include "extensions/test/extension_test_message_listener.h" | 13 #include "extensions/test/extension_test_message_listener.h" |
| 15 #include "extensions/test/result_catcher.h" | 14 #include "extensions/test/result_catcher.h" |
| 16 | 15 |
| 17 namespace extensions { | 16 namespace extensions { |
| 18 namespace { | 17 namespace { |
| 19 | 18 |
| 20 class ExtensionBindingsApiTest : public ExtensionApiTest {}; | 19 class ExtensionBindingsApiTest : public ExtensionApiTest {}; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } | 79 } |
| 81 | 80 |
| 82 // Tests that we don't override events when bindings are re-injected. | 81 // Tests that we don't override events when bindings are re-injected. |
| 83 // Regression test for http://crbug.com/269149. | 82 // Regression test for http://crbug.com/269149. |
| 84 IN_PROC_BROWSER_TEST_F(ExtensionBindingsApiTest, EventOverriding) { | 83 IN_PROC_BROWSER_TEST_F(ExtensionBindingsApiTest, EventOverriding) { |
| 85 ASSERT_TRUE(RunExtensionTest("bindings/event_overriding")) << message_; | 84 ASSERT_TRUE(RunExtensionTest("bindings/event_overriding")) << message_; |
| 86 } | 85 } |
| 87 | 86 |
| 88 } // namespace | 87 } // namespace |
| 89 } // namespace extensions | 88 } // namespace extensions |
| OLD | NEW |