| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/browser/ui/views/relaunch_notification/relaunch_recommended_bubble_view.h" |
| |
| #include "base/bind_helpers.h" |
| #include "base/macros.h" |
| #include "base/time/time.h" |
| #include "chrome/browser/ui/test/test_browser_dialog.h" |
| |
| class RelaunchRecommendedBubbleViewDialogTest : public DialogBrowserTest { |
| protected: |
| RelaunchRecommendedBubbleViewDialogTest() = default; |
| |
| // DialogBrowserTest: |
| void ShowUi(const std::string& name) override { |
| base::Time detection_time = |
| base::Time::Now() - base::TimeDelta::FromDays(3); |
| RelaunchRecommendedBubbleView::ShowBubble(browser(), detection_time, |
| base::DoNothing()); |
| } |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(RelaunchRecommendedBubbleViewDialogTest); |
| }; |
| |
| IN_PROC_BROWSER_TEST_F(RelaunchRecommendedBubbleViewDialogTest, |
| InvokeUi_default) { |
| ShowAndVerifyUi(); |
| } |