Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1144)

Side by Side Diff: chrome/browser/extensions/extension_bindings_apitest.cc

Issue 584513003: Move extension_test_message_listener to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/extensions/extension_test_message_listener.h"
10 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
11 #include "chrome/test/base/ui_test_utils.h" 10 #include "chrome/test/base/ui_test_utils.h"
12 #include "content/public/test/browser_test_utils.h" 11 #include "content/public/test/browser_test_utils.h"
13 #include "extensions/browser/extension_host.h" 12 #include "extensions/browser/extension_host.h"
14 #include "extensions/browser/extension_system.h" 13 #include "extensions/browser/extension_system.h"
15 #include "extensions/browser/process_manager.h" 14 #include "extensions/browser/process_manager.h"
15 #include "extensions/test/extension_test_message_listener.h"
16 #include "extensions/test/result_catcher.h" 16 #include "extensions/test/result_catcher.h"
17 17
18 namespace extensions { 18 namespace extensions {
19 namespace { 19 namespace {
20 20
21 class ExtensionBindingsApiTest : public ExtensionApiTest {}; 21 class ExtensionBindingsApiTest : public ExtensionApiTest {};
22 22
23 IN_PROC_BROWSER_TEST_F(ExtensionBindingsApiTest, 23 IN_PROC_BROWSER_TEST_F(ExtensionBindingsApiTest,
24 UnavailableBindingsNeverRegistered) { 24 UnavailableBindingsNeverRegistered) {
25 // Test will request the 'storage' permission. 25 // Test will request the 'storage' permission.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 82
83 // Tests that we don't override events when bindings are re-injected. 83 // Tests that we don't override events when bindings are re-injected.
84 // Regression test for http://crbug.com/269149. 84 // Regression test for http://crbug.com/269149.
85 IN_PROC_BROWSER_TEST_F(ExtensionBindingsApiTest, EventOverriding) { 85 IN_PROC_BROWSER_TEST_F(ExtensionBindingsApiTest, EventOverriding) {
86 ASSERT_TRUE(RunExtensionTest("bindings/event_overriding")) << message_; 86 ASSERT_TRUE(RunExtensionTest("bindings/event_overriding")) << message_;
87 } 87 }
88 88
89 } // namespace 89 } // namespace
90 } // namespace extensions 90 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698