The tab helper allows the SerpMetricsService to record SERP metrics on iOS by observing navigations and classifying them as search engine results page.
61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
# Copyright (c) 2019 The Brave Authors. All rights reserved.
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
import("//build/config/ios/rules.gni")
|
|
import("//ios/build/config.gni")
|
|
import("//testing/test.gni")
|
|
|
|
test("ios_brave_unit_tests") {
|
|
deps = [
|
|
# Ensure that all unit tests are run
|
|
"//ios/chrome/test:run_all_unittests",
|
|
"//ios/chrome/test:test_support",
|
|
|
|
# use fake hooks and pack resources
|
|
"//ios/chrome/app:tests_fake_hook",
|
|
"//ios/chrome/app/resources:packed_resources",
|
|
"//ios/chrome/app/resources:system_strings",
|
|
"//ios/testing:http_server_bundle_data",
|
|
|
|
# Providers
|
|
"//ios/chrome/test/providers",
|
|
"//ios/chrome/test/providers/signin:trusted_vault_provider",
|
|
|
|
# Unit tests
|
|
":legacy_unit_tests",
|
|
"//brave/ios/browser/serp_metrics:unit_tests",
|
|
|
|
# This is required until we can sort out overridden deps symbols
|
|
"//brave/ios/browser",
|
|
]
|
|
|
|
assert_no_deps = ios_assert_no_deps
|
|
}
|
|
|
|
source_set("legacy_unit_tests") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"certificate_unittest.mm",
|
|
"dictionary_transform_unittest.mm",
|
|
"test_foo.h",
|
|
"test_foo.mm",
|
|
"vector_transform_unittest.mm",
|
|
]
|
|
|
|
deps = [
|
|
"//base",
|
|
"//brave/ios/browser/api/net",
|
|
"//net",
|
|
"//net/http:generate_transport_security_state",
|
|
"//testing/gtest",
|
|
]
|
|
|
|
frameworks = [
|
|
"Foundation.framework",
|
|
"Security.framework",
|
|
]
|
|
}
|