chromium/chrome/browser/companion/core/companion_url_builder_unittest.cc

// Copyright 2023 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/companion/core/companion_url_builder.h"

#include "base/base64url.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/companion/core/constants.h"
#include "chrome/browser/companion/core/features.h"
#include "chrome/browser/companion/core/mock_signin_delegate.h"
#include "chrome/browser/companion/core/promo_handler.h"
#include "chrome/browser/companion/core/proto/companion_url_params.pb.h"
#include "chrome/common/companion/visual_query/features.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "components/unified_consent/pref_names.h"
#include "net/base/url_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

ContainsRegex;
MatchesRegex;

namespace companion {
namespace {

constexpr char kValidUrl[] =;
constexpr char kTextQuery[] =;
constexpr char kOrigin[] =;

}  // namespace

class CompanionUrlBuilderTest : public testing::Test {};

TEST_F(CompanionUrlBuilderTest, SignIn) {}

TEST_F(CompanionUrlBuilderTest, MsbbAndPcOff) {}

TEST_F(CompanionUrlBuilderTest, MsbbAndPcOn) {}

TEST_F(CompanionUrlBuilderTest, MsbbAndPcCombinations) {}

TEST_F(CompanionUrlBuilderTest, NonProtobufParams) {}

TEST_F(CompanionUrlBuilderTest, ValidPageUrls) {}

TEST_F(CompanionUrlBuilderTest, WithTextQuery) {}

TEST_F(CompanionUrlBuilderTest, WithoutTextQuery) {}

TEST_F(CompanionUrlBuilderTest, WithQueryStartTime) {}

class CompanionUrlBuilderCurrentTabTest : public CompanionUrlBuilderTest {};

TEST_F(CompanionUrlBuilderCurrentTabTest, CurrentTab) {}

class CompanionUrlBuilderDefaultUnpinnedTest : public CompanionUrlBuilderTest {};

TEST_F(CompanionUrlBuilderDefaultUnpinnedTest, DefaultUnpinned) {}

class CompanionUrlBuilderVqsEnabledTest : public CompanionUrlBuilderTest {};

TEST_F(CompanionUrlBuilderVqsEnabledTest, VqsEnabled) {}

}  // namespace companion