| 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 import("//testing/test.gni") |
| 6 import("//build/config/android/rules.gni") | |
| 7 } | |
| 8 | 6 |
| 9 static_library("request_header") { | 7 component("service") { |
| 8 output_name = "discardable_memory_service" |
| 9 |
| 10 defines = [ "DISCARDABLE_MEMORY_IMPLEMENTATION" ] |
| 11 |
| 10 sources = [ | 12 sources = [ |
| 11 "offline_page_header.cc", | 13 "discardable_shared_memory_manager.cc", |
| 12 "offline_page_header.h", | 14 "discardable_shared_memory_manager.h", |
| 13 ] | 15 ] |
| 14 | 16 |
| 15 deps = [ | 17 deps = [ |
| 16 "//base", | 18 "//base", |
| 17 ] | 19 ] |
| 18 } | 20 } |
| 19 | 21 |
| 20 source_set("unit_tests") { | 22 source_set("unit_tests") { |
| 21 testonly = true | 23 testonly = true |
| 24 |
| 22 sources = [ | 25 sources = [ |
| 23 "offline_page_header_unittest.cc", | 26 "discardable_shared_memory_manager_unittest.cc", |
| 24 ] | 27 ] |
| 25 | 28 |
| 26 deps = [ | 29 deps = [ |
| 27 ":request_header", | 30 ":service", |
| 28 "//base", | 31 "//base", |
| 29 "//base/test:test_support", | |
| 30 "//testing/gtest", | 32 "//testing/gtest", |
| 31 ] | 33 ] |
| 32 } | 34 } |
| OLD | NEW |