chromium/chrome/browser/ui/side_search/side_search_tab_contents_helper_unittest.cc

// Copyright 2021 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/side_search/side_search_tab_contents_helper.h"

#include <memory>

#include "base/feature_list.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/ui/side_search/side_search_config.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace {

constexpr char kSearchMatchUrl1[] =;
constexpr char kSearchMatchUrl2[] =;
constexpr char kNonMatchUrl[] =;

bool IsSearchURLMatch(const GURL& url) {}

}  // namespace

namespace test {

class SideSearchTabContentsHelperTest : public ::testing::Test {};

// TODO(crbug.com/40878321): Update this test to pass and re-enable.
TEST_F(SideSearchTabContentsHelperTest,
       DISABLED_LastSearchURLUpdatesCorrectly) {}

// TODO(crbug.com/40878321): Update this test to pass and re-enable.
TEST_F(SideSearchTabContentsHelperTest,
       DISABLED_IndicatesWhenSidePanelShouldBeShown) {}

TEST_F(SideSearchTabContentsHelperTest, ClearsSidePanelContentsWhenAsked) {}

// TODO(crbug.com/40878321): Update this test to pass and re-enable.
TEST_F(SideSearchTabContentsHelperTest, DISABLED_EmitsReturnedToSRPMetrics) {}

}  // namespace test