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

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

Issue 2795133002: Chrome Cleaner UI: Add a dialog class for the new UI (Closed)
Patch Set: Addressed Fabio's comments Created 3 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
(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 "base/macros.h"
6 #include "chrome/browser/safe_browsing/srt_prompt_controller.h"
7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/test/test_browser_dialog.h"
9 #include "chrome/browser/ui/views/srt_prompt_dialog.h"
sky 2017/04/05 21:17:42 This should be your first include, then a newline
alito 2017/04/06 00:20:23 Done.
10 #include "content/public/test/browser_test.h"
11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h"
13
14 namespace {
15
16 class SRTPromptDialogTest : public DialogBrowserTest {
17 public:
18 SRTPromptDialogTest() {}
19
20 void ShowDialog(const std::string& name) override {
21 safe_browsing::SRTPromptController::ShowSRTPrompt(
22 browser(), new safe_browsing::SRTPromptController());
23 }
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(SRTPromptDialogTest);
27 };
28
29 IN_PROC_BROWSER_TEST_F(SRTPromptDialogTest, InvokeDialog_default) {
30 RunDialog();
31 }
32
33 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698