Reorganizing some sync tests

- renamed target to "unit_tests"
     - fixed gn_check errors
     - moved brave_sync_auth_manager_unittest.cc from test/BUILD.gn into proper target
     - had to apply lint to whole test/BUILD.gn
This commit is contained in:
AlexeyBarabash
2021-01-10 15:35:15 +02:00
parent 3c204f886e
commit 1ce8a60aca
2 changed files with 13 additions and 4 deletions
+12 -2
View File
@@ -3,27 +3,37 @@
# 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/.
source_set("brave_profile_sync_service_unit_test") {
import("//brave/build/features.gni")
source_set("unit_tests") {
testonly = true
defines = brave_service_key_defines
public_deps = [
"//testing/gmock",
"//testing/gtest",
]
sources = [ "//brave/components/sync/driver/brave_sync_profile_sync_service_unittest.cc" ]
sources = [
"//brave/components/sync/driver/brave_sync_auth_manager_unittest.cc",
"//brave/components/sync/driver/brave_sync_profile_sync_service_unittest.cc",
]
deps = [
"//base/test:test_support",
"//brave/common:network_constants",
"//brave/components/brave_sync:crypto",
"//brave/components/brave_sync:network_time_helper",
"//brave/components/brave_sync:prefs",
"//components/os_crypt:test_support",
"//components/prefs:prefs",
"//components/signin/public/identity_manager:test_support",
"//components/sync:test_support_engine",
"//components/sync/driver:driver",
"//components/sync/driver:test_support",
"//content/test:test_support",
"//services/network:test_support",
"//services/network/public/cpp:cpp",
]
}
+1 -2
View File
@@ -397,7 +397,6 @@ test("brave_unit_tests") {
if (enable_brave_sync) {
sources += [
"//brave/components/brave_sync/crypto/crypto_unittest.cc",
"//brave/components/sync/driver/brave_sync_auth_manager_unittest.cc",
"//components/sync/base/model_type_unittest.cc",
"//components/sync/driver/sync_auth_manager_unittest.cc",
"//components/sync_device_info/device_info_sync_bridge_unittest.cc",
@@ -406,7 +405,7 @@ test("brave_unit_tests") {
deps += [
"//brave/components/brave_sync:crypto",
"//brave/components/brave_sync:network_time_helper",
"//brave/components/sync/driver:brave_profile_sync_service_unit_test",
"//brave/components/sync/driver:unit_tests",
"//components/signin/public/identity_manager:test_support",
]
}