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

Side by Side Diff: chrome/browser/accessibility/accessibility_extension_apitest.cc

Issue 824033002: Componentize SimpleAlertInfoBarDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 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 | chrome/browser/infobars/simple_alert_infobar_delegate.h » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/browser/extensions/extension_apitest.h" 7 #include "chrome/browser/extensions/extension_apitest.h"
8 #include "chrome/browser/infobars/infobar_service.h" 8 #include "chrome/browser/infobars/infobar_service.h"
9 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h"
10 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/tabs/tab_strip_model.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model.h"
12 #include "chrome/test/base/test_switches.h" 11 #include "chrome/test/base/test_switches.h"
12 #include "components/infobars/core/simple_alert_infobar_delegate.h"
13 #include "extensions/common/switches.h" 13 #include "extensions/common/switches.h"
14 14
15 // Times out on win syzyasan, http://crbug.com/166026 15 // Times out on win syzyasan, http://crbug.com/166026
16 #if defined(SYZYASAN) 16 #if defined(SYZYASAN)
17 #define MAYBE_GetAlertsForTab DISABLED_GetAlertsForTab 17 #define MAYBE_GetAlertsForTab DISABLED_GetAlertsForTab
18 #else 18 #else
19 #define MAYBE_GetAlertsForTab GetAlertsForTab 19 #define MAYBE_GetAlertsForTab GetAlertsForTab
20 #endif 20 #endif
21 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_GetAlertsForTab) { 21 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_GetAlertsForTab) {
22 #if defined(OS_WIN) && defined(USE_ASH) 22 #if defined(OS_WIN) && defined(USE_ASH)
(...skipping 12 matching lines...) Expand all
35 35
36 const char kAlertMessage[] = "Simple Alert Infobar."; 36 const char kAlertMessage[] = "Simple Alert Infobar.";
37 SimpleAlertInfoBarDelegate::Create(infobar_service, 37 SimpleAlertInfoBarDelegate::Create(infobar_service,
38 infobars::InfoBarDelegate::kNoIconID, 38 infobars::InfoBarDelegate::kNoIconID,
39 base::ASCIIToUTF16(kAlertMessage), false); 39 base::ASCIIToUTF16(kAlertMessage), false);
40 base::CommandLine::ForCurrentProcess()->AppendSwitch( 40 base::CommandLine::ForCurrentProcess()->AppendSwitch(
41 extensions::switches::kEnableExperimentalExtensionApis); 41 extensions::switches::kEnableExperimentalExtensionApis);
42 ASSERT_TRUE(RunComponentExtensionTest("accessibility/get_alerts_for_tab")) 42 ASSERT_TRUE(RunComponentExtensionTest("accessibility/get_alerts_for_tab"))
43 << message_; 43 << message_;
44 } 44 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/infobars/simple_alert_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698