chromium/chrome/browser/ui/views/side_search/side_search_browsertest.cc

// Copyright 2022 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/views/side_search/side_search_browsertest.h"

#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/side_search/side_search_config.h"
#include "chrome/browser/ui/side_search/side_search_tab_contents_helper.h"
#include "chrome/browser/ui/side_search/side_search_utils.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/side_panel/side_panel.h"
#include "chrome/browser/ui/views/side_search/side_search_icon_view.h"
#include "chrome/test/base/search_test_utils.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/result_codes.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "net/dns/mock_host_resolver.h"
#include "services/network/test/test_url_loader_factory.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/interaction/element_tracker_views.h"
#include "ui/views/test/button_test_api.h"
#include "ui/views/view_utils.h"

namespace {

constexpr char kSearchMatchPath[] =;
constexpr char kNonMatchPath[] =;

bool IsSearchURLMatch(const GURL& url) {}

}  // namespace

void SideSearchBrowserTest::SetUpOnMainThread() {}

void SideSearchBrowserTest::TearDownOnMainThread() {}

void SideSearchBrowserTest::ActivateTabAt(Browser* browser, int index) {}

void SideSearchBrowserTest::AppendTab(Browser* browser, const GURL& url) {}

void SideSearchBrowserTest::NavigateActiveTab(Browser* browser,
                                              const GURL& url,
                                              bool is_renderer_initiated) {}

content::WebContents* SideSearchBrowserTest::GetActiveSidePanelWebContents(
    Browser* browser) {}

void SideSearchBrowserTest::NavigateActiveSideContents(Browser* browser,
                                                       const GURL& url) {}

void SideSearchBrowserTest::NotifyButtonClick(Browser* browser) {}

void SideSearchBrowserTest::NotifyCloseButtonClick(Browser* browser) {}

void SideSearchBrowserTest::NotifyReadLaterButtonClick(Browser* browser) {}

BrowserView* SideSearchBrowserTest::BrowserViewFor(Browser* browser) {}

views::Button* SideSearchBrowserTest::GetSideSearchButtonFor(Browser* browser) {}

views::Button* SideSearchBrowserTest::GetSidePanelButtonFor(Browser* browser) {}

// Extract the testing of the entrypoint when the side panel is open into its
// own method as this will vary depending on whether or not the DSE support
// flag is enabled. For e.g. when DSE support is enabled and the side panel is
// open the omnibox button is hidden while if DSE support is disabled the
// toolbar button is visible.
void SideSearchBrowserTest::TestSidePanelOpenEntrypointState(Browser* browser) {}

views::Button* SideSearchBrowserTest::GetSideButtonClosePanelFor(
    Browser* browser) {}

SidePanel* SideSearchBrowserTest::GetSidePanelFor(Browser* browser) {}

content::WebContents* SideSearchBrowserTest::GetSidePanelContentsFor(
    Browser* browser,
    int index) {}

void SideSearchBrowserTest::NavigateToMatchingAndNonMatchingSearchPage(
    Browser* browser) {}

void SideSearchBrowserTest::NavigateToMatchingSearchPageAndOpenSidePanel(
    Browser* browser) {}

GURL SideSearchBrowserTest::GetMatchingSearchUrl() {}

GURL SideSearchBrowserTest::GetNonMatchingUrl() {}

ui::MouseEvent SideSearchBrowserTest::GetDummyEvent() const {}

std::unique_ptr<net::test_server::HttpResponse>
SideSearchBrowserTest::HandleRequest(
    const net::test_server::HttpRequest& request) {}