chromium/chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc

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

#include "chrome/browser/ui/toolbar/back_forward_menu_model.h"

#include <string>

#include "base/run_loop.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/test_browser_window.h"
#include "chrome/test/base/testing_profile.h"
#include "components/history/core/browser/history_service.h"
#include "content/public/browser/back_forward_cache.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/models/image_model.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/image/image_unittest_util.h"

ASCIIToUTF16;
NavigationSimulator;
WebContentsTester;

namespace {

class TestBackForwardMenuDelegate : public ui::MenuModelDelegate {};

}  // namespace

class BackFwdMenuModelTest : public ChromeRenderViewHostTestHarness {};

class BackFwdMenuModelIncognitoTest : public ChromeRenderViewHostTestHarness {};

TEST_F(BackFwdMenuModelTest, BasicCase) {}

TEST_F(BackFwdMenuModelTest, MaxItemsTest) {}

TEST_F(BackFwdMenuModelTest, ChapterStops) {}

TEST_F(BackFwdMenuModelTest, EscapeLabel) {}

// Test asynchronous loading of favicon from history service.
TEST_F(BackFwdMenuModelTest, FaviconLoadTest) {}

TEST_F(BackFwdMenuModelTest, NavigationWhenMenuShownTest) {}

// Test to check the menu in Incognito mode.
TEST_F(BackFwdMenuModelIncognitoTest, IncognitoCaseTest) {}