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

Side by Side Diff: chrome/browser/ui/update_chrome_dialog_browsertest.mm

Issue 2652823003: Add "Relaunch Chrome" dialog to Mac Views. (Closed)
Patch Set: Add "Relaunch Chrome" dialog to Mac Views. 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
tapted 2017/01/24 03:36:26 oh whoops - this file should be .cc, not .mm
Greg K 2017/01/24 04:11:20 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/command_line.h"
6 #include "chrome/browser/ui/browser_dialogs.h"
tapted 2017/01/24 03:36:25 we can drop this one - I don't think it's used
Greg K 2017/01/24 04:11:20 Done.
7 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h"
tapted 2017/01/24 03:36:26 chrome/browser/ui/browser_window.h
Greg K 2017/01/24 04:11:20 Done.
8 #include "chrome/browser/ui/test/test_browser_dialog.h"
9 #include "ui/base/ui_base_switches.h"
10
11 class UpdateRecommendedDialogTest : public DialogBrowserTest {
12 public:
13 UpdateRecommendedDialogTest() {}
14
15 // TestDialogInterface:
tapted 2017/01/24 03:36:26 whoops - this class doesn't exist (I landed a CL t
Greg K 2017/01/24 04:11:20 Done.
16 void ShowDialog(const std::string& name) override {
17 InProcessBrowserTest::browser()->window()->ShowUpdateChromeDialog();
18 }
19
20 // content::BrowserTestBase:
21 void SetUpCommandLine(base::CommandLine* command_line) override {
22 command_line->AppendSwitch(switches::kExtendMdToSecondaryUi);
23 }
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(UpdateRecommendedDialogTest);
27 };
28
29 // Test that calls ShowDialog("default"). Interactive when run via
30 // browser_tests --gtest_filter=BrowserDialogTest.Invoke --interactive
31 // --dialog=UpdateRecommendedDialogTest.InvokeDialog_default
32 IN_PROC_BROWSER_TEST_F(UpdateRecommendedDialogTest, InvokeDialog_default) {
tapted 2017/01/24 03:36:26 Yeah this fails on Windows 10 due to http://crbug.
Greg K 2017/01/24 04:11:20 Done.
33 RunDialog();
34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698