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

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

Issue 2658463002: Disable ExtensionBindingsApiTest.ExceptionInHandlerShouldNotCrash (Closed)
Patch Set: Fix whitespace Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/net/url_request_mock_util.h" 9 #include "chrome/browser/net/url_request_mock_util.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 22 matching lines...) Expand all
33 }; 33 };
34 34
35 IN_PROC_BROWSER_TEST_F(ExtensionBindingsApiTest, 35 IN_PROC_BROWSER_TEST_F(ExtensionBindingsApiTest,
36 UnavailableBindingsNeverRegistered) { 36 UnavailableBindingsNeverRegistered) {
37 // Test will request the 'storage' permission. 37 // Test will request the 'storage' permission.
38 PermissionsRequestFunction::SetIgnoreUserGestureForTests(true); 38 PermissionsRequestFunction::SetIgnoreUserGestureForTests(true);
39 ASSERT_TRUE(RunExtensionTest( 39 ASSERT_TRUE(RunExtensionTest(
40 "bindings/unavailable_bindings_never_registered")) << message_; 40 "bindings/unavailable_bindings_never_registered")) << message_;
41 } 41 }
42 42
43 #if defined(OS_LINUX)
44 // http://crbug.com/684358
45 IN_PROC_BROWSER_TEST_F(ExtensionBindingsApiTest,
46 DISABLED_ExceptionInHandlerShouldNotCrash) {
47 #else
43 IN_PROC_BROWSER_TEST_F(ExtensionBindingsApiTest, 48 IN_PROC_BROWSER_TEST_F(ExtensionBindingsApiTest,
44 ExceptionInHandlerShouldNotCrash) { 49 ExceptionInHandlerShouldNotCrash) {
50 #endif
45 ASSERT_TRUE(RunExtensionSubtest( 51 ASSERT_TRUE(RunExtensionSubtest(
46 "bindings/exception_in_handler_should_not_crash", 52 "bindings/exception_in_handler_should_not_crash",
47 "page.html")) << message_; 53 "page.html")) << message_;
48 } 54 }
49 55
50 // Tests that an error raised during an async function still fires 56 // Tests that an error raised during an async function still fires
51 // the callback, but sets chrome.runtime.lastError. 57 // the callback, but sets chrome.runtime.lastError.
52 // FIXME should be in ExtensionBindingsApiTest. 58 // FIXME should be in ExtensionBindingsApiTest.
53 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, LastError) { 59 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, LastError) {
54 ASSERT_TRUE(LoadExtension( 60 ASSERT_TRUE(LoadExtension(
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 ASSERT_TRUE(content::ExecuteScriptAndExtractInt( 271 ASSERT_TRUE(content::ExecuteScriptAndExtractInt(
266 ProcessManager::Get(profile()) 272 ProcessManager::Get(profile())
267 ->GetBackgroundHostForExtension(receiver->id()) 273 ->GetBackgroundHostForExtension(receiver->id())
268 ->host_contents(), 274 ->host_contents(),
269 "getMessageCountAfterReceivingRealSenderMessage()", &message_count)); 275 "getMessageCountAfterReceivingRealSenderMessage()", &message_count));
270 EXPECT_EQ(1, message_count); 276 EXPECT_EQ(1, message_count);
271 } 277 }
272 278
273 } // namespace 279 } // namespace
274 } // namespace extensions 280 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698