#include "chrome/browser/chained_back_navigation_tracker.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/navigation_simulator.h"
namespace chrome {
class ChainedBackNavigationTrackerTest
: public ChromeRenderViewHostTestHarness { … };
TEST_F(ChainedBackNavigationTrackerTest, ChainedBackNavigationStatus) { … }
TEST_F(ChainedBackNavigationTrackerTest,
ChainedBackNavigationStatus_ResetCountIfIntervalIsTooLong) { … }
TEST_F(
ChainedBackNavigationTrackerTest,
ChainedBackNavigationStatus_ResetCountIfNonBackForwardNavigationHappens) { … }
TEST_F(ChainedBackNavigationTrackerTest,
ChainedBackNavigationStatus_BackButtonClicked) { … }
}