#include "chrome/browser/ui/views/toolbar/reload_button.h"
#include "base/run_loop.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/views/chrome_test_views_delegate.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/event_utils.h"
#include "ui/views/test/button_test_api.h"
class ReloadButtonTest : public ChromeRenderViewHostTestHarness { … };
ReloadButtonTest::ReloadButtonTest() : … { … }
void ReloadButtonTest::CheckState(bool enabled,
ReloadButton::Mode intended_mode,
ReloadButton::Mode visible_mode,
bool double_click_timer_running,
bool mode_switch_timer_running) { … }
TEST_F(ReloadButtonTest, Basic) { … }
TEST_F(ReloadButtonTest, DoubleClickTimer) { … }
TEST_F(ReloadButtonTest, DisableOnHover) { … }
TEST_F(ReloadButtonTest, ResetOnClick) { … }
TEST_F(ReloadButtonTest, ResetOnTimer) { … }