| 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 # GYP: //components/offline_pages.gypi:offline_pages_ui_adapter | 9 # GYP: //components/offline_pages.gypi:offline_pages_ui_adapter |
| 10 static_library("offline_pages_ui_adapter") { | 10 static_library("offline_pages_ui_adapter") { |
| 11 sources = [ | 11 sources = [ |
| 12 "download_notifying_observer.cc", |
| 13 "download_notifying_observer.h", |
| 12 "download_ui_adapter.cc", | 14 "download_ui_adapter.cc", |
| 13 "download_ui_adapter.h", | 15 "download_ui_adapter.h", |
| 14 "download_ui_item.cc", | 16 "download_ui_item.cc", |
| 15 "download_ui_item.h", | 17 "download_ui_item.h", |
| 16 "offline_page_download_notifier.h", | 18 "offline_page_download_notifier.h", |
| 17 ] | 19 ] |
| 18 | 20 |
| 19 deps = [ | 21 deps = [ |
| 20 "//base", | 22 "//base", |
| 21 "//components/offline_pages:offline_pages", | 23 "//components/offline_pages:offline_pages", |
| 24 "//components/offline_pages/background:background_offliner", |
| 22 "//url", | 25 "//url", |
| 23 ] | 26 ] |
| 24 } | 27 } |
| 25 | 28 |
| 26 source_set("unit_tests") { | 29 source_set("unit_tests") { |
| 27 testonly = true | 30 testonly = true |
| 28 sources = [ | 31 sources = [ |
| 32 "download_notifying_observer_unittest.cc", |
| 29 "download_ui_adapter_unittest.cc", | 33 "download_ui_adapter_unittest.cc", |
| 30 ] | 34 ] |
| 31 | 35 |
| 32 deps = [ | 36 deps = [ |
| 33 ":offline_pages_ui_adapter", | 37 ":offline_pages_ui_adapter", |
| 34 "//base", | 38 "//base", |
| 35 "//base/test:test_support", | 39 "//base/test:test_support", |
| 36 "//components/offline_pages:offline_pages", | 40 "//components/offline_pages:offline_pages", |
| 37 "//components/offline_pages:test_support", | 41 "//components/offline_pages:test_support", |
| 38 "//testing/gtest", | 42 "//testing/gtest", |
| 39 ] | 43 ] |
| 40 } | 44 } |
| OLD | NEW |