chromium/chrome/browser/ui/views/user_education/help_bubble_view_timeout_unittest.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <memory>

#include "base/functional/callback_forward.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/test_with_browser_view.h"
#include "chrome/browser/ui/views/user_education/browser_user_education_service.h"
#include "components/user_education/common/help_bubble_params.h"
#include "components/user_education/views/help_bubble_view.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/views/widget/widget_observer.h"

HelpBubbleArrow;
HelpBubbleButtonParams;
HelpBubbleParams;
HelpBubbleView;

namespace {
class TestHelpBubbleView : public HelpBubbleView {};
}  // namespace

// Testing timeouts can be flaky on some platforms without the full browser view
// and its message pump, so we do these tests here rather than in the
// user_education component.
class HelpBubbleViewTimeoutTest : public TestWithBrowserView {};

class MockWidgetObserver : public views::WidgetObserver {};

TEST_F(HelpBubbleViewTimeoutTest, DismissOnTimeout) {}

TEST_F(HelpBubbleViewTimeoutTest, NoAutoDismissWithoutTimeout) {}

TEST_F(HelpBubbleViewTimeoutTest, TimeoutCallback) {}

TEST_F(HelpBubbleViewTimeoutTest, NoTimeoutIfSetToZero) {}

TEST_F(HelpBubbleViewTimeoutTest, RespectsProvidedTimeoutBeforeActivate) {}

TEST_F(HelpBubbleViewTimeoutTest, RespectsProvidedTimeoutAfterActivate) {}