| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/config/features.gni") |
| 6 |
| 7 source_set("renderer") { |
| 8 sources = [ |
| 9 "mock_feature_extractor_clock.cc", |
| 10 "mock_feature_extractor_clock.h", |
| 11 "test_utils.cc", |
| 12 "test_utils.h", |
| 13 ] |
| 14 deps = [ |
| 15 "//base", |
| 16 "//ipc", |
| 17 "//url/ipc:url_ipc", |
| 18 ] |
| 19 |
| 20 if (safe_browsing_mode != 0) { |
| 21 sources += [ |
| 22 "safe_browsing/threat_dom_details.cc", |
| 23 "safe_browsing/threat_dom_details.h", |
| 24 ] |
| 25 deps += [ "//components/safe_browsing/common:common" ] |
| 26 if (safe_browsing_mode == 1) { |
| 27 sources += [ |
| 28 "feature_extractor_clock.cc", |
| 29 "feature_extractor_clock.h", |
| 30 "features.cc", |
| 31 "features.h", |
| 32 "murmurhash3_util.cc", |
| 33 "murmurhash3_util.h", |
| 34 "phishing_classifier.cc", |
| 35 "phishing_classifier.h", |
| 36 "phishing_classifier_delegate.cc", |
| 37 "phishing_classifier_delegate.h", |
| 38 "phishing_dom_feature_extractor.cc", |
| 39 "phishing_dom_feature_extractor.h", |
| 40 "phishing_term_feature_extractor.cc", |
| 41 "phishing_term_feature_extractor.h", |
| 42 "phishing_url_feature_extractor.cc", |
| 43 "phishing_url_feature_extractor.h", |
| 44 "scorer.cc", |
| 45 "scorer.h", |
| 46 ] |
| 47 deps += [ |
| 48 # TODO(timvolodine): fix this |
| 49 "//chrome/common/safe_browsing:proto", |
| 50 "//third_party/smhasher:murmurhash3", |
| 51 ] |
| 52 } |
| 53 } |
| 54 } |
| 55 |
| 56 source_set("unit_tests") { |
| 57 testonly = true |
| 58 sources = [ |
| 59 "features_unittest.cc", |
| 60 "murmurhash3_util_unittest.h", |
| 61 "phishing_term_feature_extractor_unittest.cc", |
| 62 "phishing_url_feature_extractor_unittest.cc", |
| 63 "scorer_unittest.cc", |
| 64 ] |
| 65 |
| 66 deps = [ |
| 67 ":renderer", |
| 68 "//base:i18n", |
| 69 "//components/safe_browsing/common", |
| 70 "//ipc:ipc", |
| 71 "//testing/gtest", |
| 72 "//third_party/WebKit/public:blink", |
| 73 "//third_party/icu", |
| 74 ] |
| 75 } |
| OLD | NEW |