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

Side by Side Diff: chrome/browser/ui/views/chrome_cleaner_dialog_browsertest.cc

Issue 2848683002: Chrome Cleaner UI: Rename SRT to ChromeCleaner (Closed)
Patch Set: Rebase Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/views/srt_prompt_dialog.h" 5 #include "chrome/browser/ui/views/chrome_cleaner_dialog.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "chrome/browser/safe_browsing/srt_prompt_controller.h" 8 #include "chrome/browser/safe_browsing/chrome_cleaner_dialog_controller.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_dialogs.h" 10 #include "chrome/browser/ui/browser_dialogs.h"
11 #include "chrome/browser/ui/test/test_browser_dialog.h" 11 #include "chrome/browser/ui/test/test_browser_dialog.h"
12 #include "content/public/test/browser_test.h" 12 #include "content/public/test/browser_test.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace { 16 namespace {
17 17
18 class SRTPromptDialogTest : public DialogBrowserTest { 18 class ChromeCleanerDialogTest : public DialogBrowserTest {
19 public: 19 public:
20 SRTPromptDialogTest() {} 20 ChromeCleanerDialogTest() {}
21 21
22 void ShowDialog(const std::string& name) override { 22 void ShowDialog(const std::string& name) override {
23 chrome::ShowSRTPrompt(browser(), new safe_browsing::SRTPromptController()); 23 chrome::ShowChromeCleanerPrompt(
24 browser(), new safe_browsing::ChromeCleanerDialogController());
24 } 25 }
25 26
26 private: 27 private:
27 DISALLOW_COPY_AND_ASSIGN(SRTPromptDialogTest); 28 DISALLOW_COPY_AND_ASSIGN(ChromeCleanerDialogTest);
28 }; 29 };
29 30
30 IN_PROC_BROWSER_TEST_F(SRTPromptDialogTest, InvokeDialog_default) { 31 IN_PROC_BROWSER_TEST_F(ChromeCleanerDialogTest, InvokeDialog_default) {
31 RunDialog(); 32 RunDialog();
32 } 33 }
33 34
34 } // namespace 35 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/chrome_cleaner_dialog.cc ('k') | chrome/browser/ui/views/srt_prompt_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698