| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/views/chrome_cleaner_dialog.h" | |
| 6 | |
| 7 #include "base/macros.h" | |
| 8 #include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_dialog_cont
roller.h" | |
| 9 #include "chrome/browser/ui/browser.h" | |
| 10 #include "chrome/browser/ui/browser_dialogs.h" | |
| 11 #include "chrome/browser/ui/test/test_browser_dialog.h" | |
| 12 #include "content/public/test/browser_test.h" | |
| 13 #include "testing/gmock/include/gmock/gmock.h" | |
| 14 #include "testing/gtest/include/gtest/gtest.h" | |
| 15 | |
| 16 namespace { | |
| 17 | |
| 18 class ChromeCleanerDialogTest : public DialogBrowserTest { | |
| 19 public: | |
| 20 ChromeCleanerDialogTest() {} | |
| 21 | |
| 22 void ShowDialog(const std::string& name) override { | |
| 23 chrome::ShowChromeCleanerPrompt( | |
| 24 browser(), new safe_browsing::ChromeCleanerDialogController()); | |
| 25 } | |
| 26 | |
| 27 private: | |
| 28 DISALLOW_COPY_AND_ASSIGN(ChromeCleanerDialogTest); | |
| 29 }; | |
| 30 | |
| 31 IN_PROC_BROWSER_TEST_F(ChromeCleanerDialogTest, InvokeDialog_default) { | |
| 32 RunDialog(); | |
| 33 } | |
| 34 | |
| 35 } // namespace | |
| OLD | NEW |