mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
221 lines
6.5 KiB
Plaintext
221 lines
6.5 KiB
Plaintext
# Copyright 2015 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.
|
|
|
|
if (is_android) {
|
|
import("//build/config/android/rules.gni")
|
|
}
|
|
|
|
static_library("core") {
|
|
sources = [
|
|
"archive_manager.cc",
|
|
"archive_manager.h",
|
|
"archive_validator.cc",
|
|
"archive_validator.h",
|
|
"client_id.cc",
|
|
"client_id.h",
|
|
"client_namespace_constants.cc",
|
|
"client_namespace_constants.h",
|
|
"client_policy_controller.cc",
|
|
"client_policy_controller.h",
|
|
"model/add_page_task.cc",
|
|
"model/add_page_task.h",
|
|
"model/add_page_to_download_manager_task.cc",
|
|
"model/add_page_to_download_manager_task.h",
|
|
"model/cleanup_thumbnails_task.cc",
|
|
"model/cleanup_thumbnails_task.h",
|
|
"model/clear_digest_task.cc",
|
|
"model/clear_digest_task.h",
|
|
"model/clear_storage_task.cc",
|
|
"model/clear_storage_task.h",
|
|
"model/complete_offline_page_upgrade_task.cc",
|
|
"model/complete_offline_page_upgrade_task.h",
|
|
"model/delete_page_task.cc",
|
|
"model/delete_page_task.h",
|
|
"model/get_pages_task.cc",
|
|
"model/get_pages_task.h",
|
|
"model/get_thumbnail_task.cc",
|
|
"model/get_thumbnail_task.h",
|
|
"model/has_thumbnail_task.cc",
|
|
"model/has_thumbnail_task.h",
|
|
"model/mark_page_accessed_task.cc",
|
|
"model/mark_page_accessed_task.h",
|
|
"model/offline_page_model_taskified.cc",
|
|
"model/offline_page_model_taskified.h",
|
|
"model/offline_page_model_utils.cc",
|
|
"model/offline_page_model_utils.h",
|
|
"model/offline_page_upgrade_types.cc",
|
|
"model/offline_page_upgrade_types.h",
|
|
"model/persistent_page_consistency_check_task.cc",
|
|
"model/persistent_page_consistency_check_task.h",
|
|
"model/start_offline_page_upgrade_task.cc",
|
|
"model/start_offline_page_upgrade_task.h",
|
|
"model/startup_maintenance_task.cc",
|
|
"model/startup_maintenance_task.h",
|
|
"model/store_thumbnail_task.cc",
|
|
"model/store_thumbnail_task.h",
|
|
"model/update_file_path_task.cc",
|
|
"model/update_file_path_task.h",
|
|
"offline_event_logger.cc",
|
|
"offline_event_logger.h",
|
|
"offline_page_archiver.cc",
|
|
"offline_page_archiver.h",
|
|
"offline_page_client_policy.h",
|
|
"offline_page_item.cc",
|
|
"offline_page_item.h",
|
|
"offline_page_metadata_store_sql.cc",
|
|
"offline_page_metadata_store_sql.h",
|
|
"offline_page_model.cc",
|
|
"offline_page_model.h",
|
|
"offline_page_model_event_logger.cc",
|
|
"offline_page_model_event_logger.h",
|
|
"offline_page_thumbnail.cc",
|
|
"offline_page_thumbnail.h",
|
|
"offline_page_types.h",
|
|
"offline_pages_ukm_reporter.cc",
|
|
"offline_pages_ukm_reporter.h",
|
|
"offline_pages_ukm_reporter_stub.cc",
|
|
"offline_pages_ukm_reporter_stub.h",
|
|
"offline_store_types.h",
|
|
"offline_store_utils.cc",
|
|
"offline_store_utils.h",
|
|
"snapshot_controller.cc",
|
|
"snapshot_controller.h",
|
|
"system_download_manager.h",
|
|
"task.cc",
|
|
"task.h",
|
|
"task_queue.cc",
|
|
"task_queue.h",
|
|
]
|
|
|
|
deps = [
|
|
":switches",
|
|
"//base",
|
|
"//components/filename_generation",
|
|
"//components/keyed_service/core",
|
|
"//components/offline_items_collection/core/utilities",
|
|
"//crypto",
|
|
"//net",
|
|
"//services/metrics/public/cpp:metrics_cpp",
|
|
"//services/metrics/public/cpp:ukm_builders",
|
|
"//sql:sql",
|
|
"//url",
|
|
]
|
|
}
|
|
|
|
static_library("test_support") {
|
|
testonly = true
|
|
sources = [
|
|
"model/model_task_test_base.cc",
|
|
"model/model_task_test_base.h",
|
|
"model/offline_page_item_generator.cc",
|
|
"model/offline_page_item_generator.h",
|
|
"model/offline_page_test_utils.cc",
|
|
"model/offline_page_test_utils.h",
|
|
"offline_page_metadata_store_test_util.cc",
|
|
"offline_page_metadata_store_test_util.h",
|
|
"offline_page_test_archiver.cc",
|
|
"offline_page_test_archiver.h",
|
|
"stub_offline_page_model.cc",
|
|
"stub_offline_page_model.h",
|
|
"stub_system_download_manager.cc",
|
|
"stub_system_download_manager.h",
|
|
"task_test_base.cc",
|
|
"task_test_base.h",
|
|
"test_task.cc",
|
|
"test_task.h",
|
|
"test_task_runner.cc",
|
|
"test_task_runner.h",
|
|
]
|
|
|
|
deps = [
|
|
":core",
|
|
":switches",
|
|
"//base",
|
|
"//base/test:test_support",
|
|
"//components/keyed_service/core",
|
|
"//sql:sql",
|
|
"//testing/gmock",
|
|
"//testing/gtest",
|
|
"//url",
|
|
]
|
|
}
|
|
|
|
static_library("switches") {
|
|
sources = [
|
|
"offline_page_feature.cc",
|
|
"offline_page_feature.h",
|
|
]
|
|
|
|
deps = [
|
|
"//base",
|
|
"//components/version_info",
|
|
]
|
|
}
|
|
|
|
source_set("unit_tests") {
|
|
testonly = true
|
|
sources = [
|
|
"archive_manager_unittest.cc",
|
|
"archive_validator_unittest.cc",
|
|
"client_policy_controller_unittest.cc",
|
|
"model/add_page_task_unittest.cc",
|
|
"model/add_page_to_download_manager_task_unittest.cc",
|
|
"model/cleanup_thumbnails_task_unittest.cc",
|
|
"model/clear_digest_task_unittest.cc",
|
|
"model/clear_storage_task_unittest.cc",
|
|
"model/complete_offline_page_upgrade_task_unittest.cc",
|
|
"model/delete_page_task_unittest.cc",
|
|
"model/get_pages_task_unittest.cc",
|
|
"model/get_thumbnail_task_unittest.cc",
|
|
"model/has_thumbnail_task_unittest.cc",
|
|
"model/mark_page_accessed_task_unittest.cc",
|
|
"model/offline_page_model_taskified_unittest.cc",
|
|
"model/offline_page_model_utils_unittest.cc",
|
|
"model/persistent_page_consistency_check_task_unittest.cc",
|
|
"model/start_offline_page_upgrade_task_unittest.cc",
|
|
"model/startup_maintenance_task_unittest.cc",
|
|
"model/store_thumbnail_task_unittest.cc",
|
|
"model/update_file_path_task_unittest.cc",
|
|
"offline_event_logger_unittest.cc",
|
|
"offline_page_archiver_unittest.cc",
|
|
"offline_page_feature_unittest.cc",
|
|
"offline_page_metadata_store_unittest.cc",
|
|
"offline_page_model_event_logger_unittest.cc",
|
|
"offline_page_thumbnail_unittest.cc",
|
|
"offline_pages_ukm_reporter_unittest.cc",
|
|
"snapshot_controller_unittest.cc",
|
|
"task_queue_unittest.cc",
|
|
"task_unittest.cc",
|
|
]
|
|
|
|
deps = [
|
|
":core",
|
|
":switches",
|
|
":test_support",
|
|
"prefetch:unit_tests",
|
|
"renovations:unit_tests",
|
|
"//base",
|
|
"//base/test:test_support",
|
|
"//components/ukm:test_support",
|
|
"//services/metrics/public/cpp:ukm_builders",
|
|
"//sql:sql",
|
|
"//testing/gmock",
|
|
"//testing/gtest",
|
|
"//url",
|
|
]
|
|
}
|
|
|
|
if (is_android) {
|
|
java_cpp_enum("offline_page_model_enums_java") {
|
|
sources = [
|
|
"background/request_notifier.h",
|
|
"background/request_queue_results.h",
|
|
"background/save_page_request.h",
|
|
"offline_page_types.h",
|
|
"offline_store_types.h",
|
|
"prefetch/prefetch_types.h",
|
|
]
|
|
}
|
|
}
|