| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 if (is_android) { | 5 if (is_android) { |
| 6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
| 7 } | 7 } |
| 8 | 8 |
| 9 static_library("request_header") { | 9 static_library("core") { |
| 10 sources = [ | 10 sources = [ |
| 11 "offline_page_header.cc", | 11 "task.cc", |
| 12 "offline_page_header.h", | 12 "task.h", |
| 13 "task_queue.cc", |
| 14 "task_queue.h", |
| 13 ] | 15 ] |
| 14 | 16 |
| 15 deps = [ | 17 deps = [ |
| 16 "//base", | 18 "//base", |
| 17 ] | 19 ] |
| 18 } | 20 } |
| 19 | 21 |
| 22 static_library("test_support") { |
| 23 testonly = true |
| 24 sources = [ |
| 25 "test_task.cc", |
| 26 "test_task.h", |
| 27 ] |
| 28 |
| 29 deps = [ |
| 30 ":core", |
| 31 "//base", |
| 32 ] |
| 33 } |
| 34 |
| 20 source_set("unit_tests") { | 35 source_set("unit_tests") { |
| 21 testonly = true | 36 testonly = true |
| 22 sources = [ | 37 sources = [ |
| 23 "offline_page_header_unittest.cc", | 38 "task_queue_unittest.cc", |
| 39 "task_unittest.cc", |
| 24 ] | 40 ] |
| 25 | 41 |
| 26 deps = [ | 42 deps = [ |
| 27 ":request_header", | 43 ":core", |
| 44 ":test_support", |
| 28 "//base", | 45 "//base", |
| 29 "//base/test:test_support", | 46 "//base/test:test_support", |
| 30 "//testing/gtest", | 47 "//testing/gtest:gtest", |
| 31 ] | 48 ] |
| 32 } | 49 } |
| OLD | NEW |