| Index: components/offline_pages/core/BUILD.gn
|
| diff --git a/components/offline_pages/request_header/BUILD.gn b/components/offline_pages/core/BUILD.gn
|
| similarity index 52%
|
| copy from components/offline_pages/request_header/BUILD.gn
|
| copy to components/offline_pages/core/BUILD.gn
|
| index 711623cc3481ce69aee7d0bf41b1812ca406ff85..d84ddee40826ebe9c37fdf636b8ab11c77cd8f10 100644
|
| --- a/components/offline_pages/request_header/BUILD.gn
|
| +++ b/components/offline_pages/core/BUILD.gn
|
| @@ -6,10 +6,12 @@ if (is_android) {
|
| import("//build/config/android/rules.gni")
|
| }
|
|
|
| -static_library("request_header") {
|
| +static_library("core") {
|
| sources = [
|
| - "offline_page_header.cc",
|
| - "offline_page_header.h",
|
| + "task.cc",
|
| + "task.h",
|
| + "task_queue.cc",
|
| + "task_queue.h",
|
| ]
|
|
|
| deps = [
|
| @@ -17,16 +19,31 @@ static_library("request_header") {
|
| ]
|
| }
|
|
|
| +static_library("test_support") {
|
| + testonly = true
|
| + sources = [
|
| + "test_task.cc",
|
| + "test_task.h",
|
| + ]
|
| +
|
| + deps = [
|
| + ":core",
|
| + "//base",
|
| + ]
|
| +}
|
| +
|
| source_set("unit_tests") {
|
| testonly = true
|
| sources = [
|
| - "offline_page_header_unittest.cc",
|
| + "task_queue_unittest.cc",
|
| + "task_unittest.cc",
|
| ]
|
|
|
| deps = [
|
| - ":request_header",
|
| + ":core",
|
| + ":test_support",
|
| "//base",
|
| "//base/test:test_support",
|
| - "//testing/gtest",
|
| + "//testing/gtest:gtest",
|
| ]
|
| }
|
|
|