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

Side by Side Diff: chrome/browser/ui/extensions/extension_message_bubble_browsertest.cc

Issue 1858773006: [Extensions UI] Use the ExtensionMessageBubbleBridge for Views platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/ui/extensions/extension_message_bubble_browsertest.h" 5 #include "chrome/browser/ui/extensions/extension_message_bubble_browsertest.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "chrome/browser/extensions/extension_action_test_util.h" 9 #include "chrome/browser/extensions/extension_action_test_util.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 CloseBubble(second_browser); 52 CloseBubble(second_browser);
53 } 53 }
54 54
55 void ExtensionMessageBubbleBrowserTest::TestBubbleAnchoredToAppMenu() { 55 void ExtensionMessageBubbleBrowserTest::TestBubbleAnchoredToAppMenu() {
56 scoped_refptr<const extensions::Extension> no_action_extension = 56 scoped_refptr<const extensions::Extension> no_action_extension =
57 extensions::extension_action_test_util::CreateActionExtension( 57 extensions::extension_action_test_util::CreateActionExtension(
58 "no_action_extension", 58 "no_action_extension",
59 extensions::extension_action_test_util::NO_ACTION, 59 extensions::extension_action_test_util::NO_ACTION,
60 extensions::Manifest::UNPACKED); 60 extensions::Manifest::UNPACKED);
61 extension_service()->AddExtension(no_action_extension.get()); 61 extension_service()->AddExtension(no_action_extension.get());
62
63 Browser* second_browser = new Browser(Browser::CreateParams(profile())); 62 Browser* second_browser = new Browser(Browser::CreateParams(profile()));
64 base::RunLoop().RunUntilIdle(); 63 base::RunLoop().RunUntilIdle();
65
66 CheckBubble(second_browser, ANCHOR_APP_MENU); 64 CheckBubble(second_browser, ANCHOR_APP_MENU);
67 CloseBubble(second_browser); 65 CloseBubble(second_browser);
68 } 66 }
69 67
70 void ExtensionMessageBubbleBrowserTest:: 68 void ExtensionMessageBubbleBrowserTest::
71 TestBubbleAnchoredToAppMenuWithOtherAction() { 69 TestBubbleAnchoredToAppMenuWithOtherAction() {
72 scoped_refptr<const extensions::Extension> no_action_extension = 70 scoped_refptr<const extensions::Extension> no_action_extension =
73 extensions::extension_action_test_util::CreateActionExtension( 71 extensions::extension_action_test_util::CreateActionExtension(
74 "no_action_extension", 72 "no_action_extension",
75 extensions::extension_action_test_util::NO_ACTION, 73 extensions::extension_action_test_util::NO_ACTION,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 113
116 void ExtensionMessageBubbleBrowserTest::PreBubbleShowsOnStartup() { 114 void ExtensionMessageBubbleBrowserTest::PreBubbleShowsOnStartup() {
117 LoadExtension(test_data_dir_.AppendASCII("good_unpacked")); 115 LoadExtension(test_data_dir_.AppendASCII("good_unpacked"));
118 } 116 }
119 117
120 void ExtensionMessageBubbleBrowserTest::TestBubbleShowsOnStartup() { 118 void ExtensionMessageBubbleBrowserTest::TestBubbleShowsOnStartup() {
121 base::RunLoop().RunUntilIdle(); 119 base::RunLoop().RunUntilIdle();
122 CheckBubble(browser(), ANCHOR_BROWSER_ACTION); 120 CheckBubble(browser(), ANCHOR_BROWSER_ACTION);
123 CloseBubble(browser()); 121 CloseBubble(browser());
124 } 122 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698