| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # GYP version: components/dom_distiller.gypi:dom_distiller_core | 5 # GYP version: components/dom_distiller.gypi:dom_distiller_core |
| 6 static_library("core") { | 6 static_library("core") { |
| 7 sources = [ | 7 sources = [ |
| 8 "../android/component_jni_registrar.cc", | 8 "../android/component_jni_registrar.cc", |
| 9 "../android/component_jni_registrar.h", | 9 "../android/component_jni_registrar.h", |
| 10 "article_distillation_update.cc", | 10 "article_distillation_update.cc", |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 "url_utils_android.h", | 38 "url_utils_android.h", |
| 39 "url_utils.cc", | 39 "url_utils.cc", |
| 40 "url_utils.h", | 40 "url_utils.h", |
| 41 "viewer.cc", | 41 "viewer.cc", |
| 42 "viewer.h", | 42 "viewer.h", |
| 43 ] | 43 ] |
| 44 | 44 |
| 45 deps = [ | 45 deps = [ |
| 46 "//base", | 46 "//base", |
| 47 "//components/dom_distiller/core/proto", | 47 "//components/dom_distiller/core/proto", |
| 48 "//components/leveldb_proto", |
| 48 "//components/resources", | 49 "//components/resources", |
| 49 "//components/strings", | 50 "//components/strings", |
| 50 "//net", | 51 "//net", |
| 51 "//skia", | 52 "//skia", |
| 52 "//sync", | 53 "//sync", |
| 53 "//third_party/dom_distiller_js/package/proto", | 54 "//third_party/dom_distiller_js/package/proto", |
| 54 "//ui/base", | 55 "//ui/base", |
| 55 "//url", | 56 "//url", |
| 56 #'components.gyp:leveldb_proto', TODO(GYP) | 57 ] |
| 58 |
| 59 forward_dependent_configs_from = [ |
| 60 "//components/dom_distiller/core/proto", |
| 61 "//third_party/dom_distiller_js/package/proto", |
| 57 ] | 62 ] |
| 58 | 63 |
| 59 if (is_android) { | 64 if (is_android) { |
| 60 #deps += [ ":dom_distiller_core_jni_headers" ] TODO(GYP) | 65 #deps += [ ":dom_distiller_core_jni_headers" ] TODO(GYP) |
| 61 } | 66 } |
| 62 } | 67 } |
| 63 | 68 |
| 64 # GYP version: components/dom_distiller.gypi:dom_distiller_test_support | 69 # GYP version: components/dom_distiller.gypi:dom_distiller_test_support |
| 65 static_library("test_support") { | 70 static_library("test_support") { |
| 66 sources = [ | 71 sources = [ |
| 67 "dom_distiller_test_util.cc", | 72 "dom_distiller_test_util.cc", |
| 68 "dom_distiller_test_util.h", | 73 "dom_distiller_test_util.h", |
| 69 "fake_distiller.cc", | 74 "fake_distiller.cc", |
| 70 "fake_distiller.h", | 75 "fake_distiller.h", |
| 71 "fake_distiller_page.cc", | 76 "fake_distiller_page.cc", |
| 72 "fake_distiller_page.h", | 77 "fake_distiller_page.h", |
| 73 ] | 78 ] |
| 74 | 79 |
| 75 deps = [ | 80 deps = [ |
| 76 ":core", | 81 ":core", |
| 77 #'components.gyp:leveldb_proto_test_support', TODO(GYP) | 82 "//components/leveldb_proto:test_support", |
| 78 "//sync", | 83 "//sync", |
| 79 "//testing/gmock", | 84 "//testing/gmock", |
| 80 "//testing/gtest", | 85 "//testing/gtest", |
| 81 ] | 86 ] |
| 82 } | 87 } |
| 83 | 88 |
| 89 source_set("unit_tests") { |
| 90 sources = [ |
| 91 "article_entry_unittest.cc", |
| 92 "distilled_content_store_unittest.cc", |
| 93 "distilled_page_prefs_unittests.cc", |
| 94 "distiller_unittest.cc", |
| 95 "distiller_url_fetcher_unittest.cc", |
| 96 "dom_distiller_model_unittest.cc", |
| 97 "dom_distiller_service_unittest.cc", |
| 98 "dom_distiller_store_unittest.cc", |
| 99 "task_tracker_unittest.cc", |
| 100 "url_utils_unittest.cc", |
| 101 "viewer_unittest.cc", |
| 102 ] |
| 103 |
| 104 deps = [ |
| 105 ":core", |
| 106 ":test_support", |
| 107 "//testing/gmock", |
| 108 "//testing/gtest", |
| 109 ] |
| 110 } |
| OLD | NEW |