blob: 832539107724a4f6235af6d52147365702785630 [file] [log] [blame]
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
static_library("embedder_support") {
sources = [
"pref_names.cc",
"pref_names.h",
"switches.cc",
"switches.h",
]
}
# Target for general utilities that are only used in the browser process.
static_library("browser_util") {
sources = [
"user_agent_utils.cc",
"user_agent_utils.h",
]
deps = [
":embedder_support",
"//build:branding_buildflags",
"//components/version_info",
"//content/public/browser",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"origin_trials/origin_trial_policy_impl_unittest.cc",
"user_agent_utils_unittest.cc",
]
deps = [
":browser_util",
"//base",
"//base/test:test_support",
"//components/embedder_support",
"//components/embedder_support/origin_trials",
"//components/version_info:version_info",
"//content/public/common",
"//mojo/core/embedder:embedder",
"//net:net",
"//net/traffic_annotation:test_support",
"//services/network:test_support",
"//testing/gtest",
"//third_party/blink/public/common:headers",
"//third_party/blink/public/mojom:mojom_platform_headers",
]
if (is_android) {
sources += [
"android/util/android_stream_reader_url_loader_unittest.cc",
"android/util/input_stream_reader_unittest.cc",
"android/util/input_stream_unittest.cc",
]
deps += [
"android:native_j_unittests_jni_headers",
"android:native_java_unittests_java",
"android:util",
]
}
}