naiveproxy/components/webdata/common/BUILD.gn

94 lines
3.0 KiB
Plaintext
Raw Normal View History

2018-08-15 01:19:20 +03:00
# Copyright 2014 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.
component("common") {
output_name = "webdata_common"
sources = [
"web_data_request_manager.cc",
"web_data_request_manager.h",
"web_data_results.h",
"web_data_service_base.cc",
"web_data_service_base.h",
"web_data_service_consumer.h",
"web_database.cc",
"web_database.h",
"web_database_backend.cc",
"web_database_backend.h",
"web_database_service.cc",
"web_database_service.h",
"web_database_table.cc",
"web_database_table.h",
"webdata_constants.cc",
"webdata_constants.h",
"webdata_export.h",
]
defines = [ "WEBDATA_IMPLEMENTATION" ]
deps = [
"//base",
"//sql",
]
}
bundle_data("unit_tests_bundle_data") {
visibility = [ ":unit_tests" ]
testonly = true
sources = [
"//components/test/data/web_database/version_50.sql",
"//components/test/data/web_database/version_52.sql",
"//components/test/data/web_database/version_53.sql",
"//components/test/data/web_database/version_54.sql",
"//components/test/data/web_database/version_55.sql",
"//components/test/data/web_database/version_56.sql",
"//components/test/data/web_database/version_57.sql",
"//components/test/data/web_database/version_58.sql",
"//components/test/data/web_database/version_59.sql",
"//components/test/data/web_database/version_60.sql",
"//components/test/data/web_database/version_61.sql",
"//components/test/data/web_database/version_62.sql",
"//components/test/data/web_database/version_63.sql",
"//components/test/data/web_database/version_64.sql",
"//components/test/data/web_database/version_65.sql",
"//components/test/data/web_database/version_66.sql",
"//components/test/data/web_database/version_67.sql",
"//components/test/data/web_database/version_68.sql",
"//components/test/data/web_database/version_69.sql",
"//components/test/data/web_database/version_70.sql",
"//components/test/data/web_database/version_71.sql",
"//components/test/data/web_database/version_72.sql",
"//components/test/data/web_database/version_73.sql",
"//components/test/data/web_database/version_73_with_type_column.sql",
"//components/test/data/web_database/version_74.sql",
"//components/test/data/web_database/version_75.sql",
"//components/test/data/web_database/version_76.sql",
"//components/test/data/web_database/version_77.sql",
]
outputs = [
"{{bundle_resources_dir}}/" +
"{{source_root_relative_dir}}/{{source_file_part}}",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"web_database_migration_unittest.cc",
]
deps = [
":common",
":unit_tests_bundle_data",
"//base",
"//components/autofill/core/browser",
"//components/autofill/core/common",
"//components/password_manager/core/browser",
"//components/search_engines",
"//components/signin/core/browser",
"//sql",
"//testing/gtest",
]
}