| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//build/config/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
| 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 7 | 8 |
| 8 if (is_android) { | 9 if (is_android) { |
| 9 # GYP: components.gyp:web_restrictions_java | |
| 10 android_library("web_restrictions_java") { | 10 android_library("web_restrictions_java") { |
| 11 java_files = [ | 11 java_files = [ |
| 12 "browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsC
ontentProvider.java", | 12 "browser/java/src/org/chromium/components/webrestrictions/browser/WebRestr
ictionsContentProvider.java", |
| 13 "browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsC
lient.java", | 13 "browser/java/src/org/chromium/components/webrestrictions/browser/WebRestr
ictionsClient.java", |
| 14 "browser/java/src/org/chromium/components/webrestrictions/browser/WebRestr
ictionsClientResult.java", |
| 14 ] | 15 ] |
| 15 deps = [ | 16 deps = [ |
| 16 "//base:base_java", | 17 "//base:base_java", |
| 17 ] | 18 ] |
| 18 } | 19 } |
| 19 | 20 |
| 20 # GYP: //components/components_test.gyp:components_junit_tests | 21 # GYP: //components/components_test.gyp:components_junit_tests |
| 21 junit_binary("components_web_restrictions_junit_tests") { | 22 junit_binary("components_web_restrictions_junit_tests") { |
| 22 java_files = [ | 23 java_files = [ |
| 23 "browser/junit/src/org/chromium/components/webrestrictions/WebRestrictions
ContentProviderTest.java", | 24 "browser/junit/src/org/chromium/components/webrestrictions/browser/WebRest
rictionsContentProviderTest.java", |
| 24 "browser/junit/src/org/chromium/components/webrestrictions/WebRestrictions
ClientTest.java", | 25 "browser/junit/src/org/chromium/components/webrestrictions/browser/WebRest
rictionsClientTest.java", |
| 25 ] | 26 ] |
| 26 deps = [ | 27 deps = [ |
| 27 ":web_restrictions_java", | 28 ":web_restrictions_java", |
| 28 "//base:base_java", | 29 "//base:base_java", |
| 29 "//third_party/junit:hamcrest", | 30 "//third_party/junit:hamcrest", |
| 30 ] | 31 ] |
| 31 } | 32 } |
| 32 | 33 |
| 33 generate_jni("web_restrictions_jni_headers") { | 34 generate_jni("web_restrictions_jni_headers") { |
| 34 sources = [ | 35 sources = [ |
| 35 "browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsC
lient.java", | 36 "browser/java/src/org/chromium/components/webrestrictions/browser/WebRestr
ictionsClient.java", |
| 37 "browser/java/src/org/chromium/components/webrestrictions/browser/WebRestr
ictionsClientResult.java", |
| 36 ] | 38 ] |
| 37 jni_package = "web_restrictions" | 39 jni_package = "web_restrictions" |
| 38 } | 40 } |
| 39 | 41 |
| 40 # GYP: components.gyp:web_restrictions_browser | 42 # GYP: components.gyp:web_restrictions_browser |
| 41 static_library("browser") { | 43 static_library("browser") { |
| 42 sources = [ | 44 sources = [ |
| 43 "browser/web_restrictions_client.cc", | 45 "browser/web_restrictions_client.cc", |
| 44 "browser/web_restrictions_client.h", | 46 "browser/web_restrictions_client.h", |
| 47 "browser/web_restrictions_client_result.cc", |
| 48 "browser/web_restrictions_client_result.h", |
| 49 "browser/web_restrictions_mojo_implementation.cc", |
| 50 "browser/web_restrictions_mojo_implementation.h", |
| 45 "browser/web_restrictions_resource_throttle.cc", | 51 "browser/web_restrictions_resource_throttle.cc", |
| 46 "browser/web_restrictions_resource_throttle.h", | 52 "browser/web_restrictions_resource_throttle.h", |
| 47 ] | 53 ] |
| 48 deps = [ | 54 deps = [ |
| 55 ":interfaces", |
| 49 ":web_restrictions_jni_headers", | 56 ":web_restrictions_jni_headers", |
| 50 "//base", | 57 "//base", |
| 51 "//content/public/browser", | 58 "//content/public/browser", |
| 52 "//net", | 59 "//net:net", |
| 53 ] | 60 ] |
| 54 } | 61 } |
| 55 | 62 |
| 56 # GYP: components.gyp:web_restrictions_renderer | 63 mojom("interfaces") { |
| 57 static_library("renderer") { | |
| 58 sources = [ | 64 sources = [ |
| 59 "renderer/web_restrictions_gin_wrapper.cc", | 65 "interfaces/web_restrictions.mojom", |
| 60 "renderer/web_restrictions_gin_wrapper.h", | |
| 61 ] | |
| 62 deps = [ | |
| 63 "//base", | |
| 64 "//content/public/renderer", | |
| 65 "//gin", | |
| 66 "//third_party/WebKit/public:blink_headers", | |
| 67 ] | 66 ] |
| 68 } | 67 } |
| 69 | 68 |
| 70 generate_jni("test_support_jni_headers") { | 69 generate_jni("test_support_jni_headers") { |
| 71 sources = [ | 70 sources = [ |
| 72 "browser/javatest/src/org/chromium/components/webrestrictions/MockWebRestr
ictionsClient.java", | 71 "browser/javatest/src/org/chromium/components/webrestrictions/browser/Mock
WebRestrictionsClient.java", |
| 73 ] | 72 ] |
| 74 jni_package = "web_restrictions" | 73 jni_package = "web_restrictions" |
| 75 deps = [ | 74 deps = [ |
| 76 ":web_restrictions_java", | 75 ":web_restrictions_java", |
| 77 ] | 76 ] |
| 78 } | 77 } |
| 79 | 78 |
| 80 android_library("test_support_java") { | 79 android_library("test_support_java") { |
| 81 java_files = [ "browser/javatest/src/org/chromium/components/webrestrictions
/MockWebRestrictionsClient.java" ] | 80 java_files = [ "browser/javatest/src/org/chromium/components/webrestrictions
/browser/MockWebRestrictionsClient.java" ] |
| 82 deps = [ | 81 deps = [ |
| 83 ":web_restrictions_java", | 82 ":web_restrictions_java", |
| 84 "//base:base_java", | 83 "//base:base_java", |
| 85 ] | 84 ] |
| 86 } | 85 } |
| 87 | 86 |
| 88 source_set("test_support") { | 87 source_set("test_support") { |
| 89 sources = [ | 88 sources = [ |
| 90 "browser/mock_web_restrictions_client.cc", | 89 "browser/mock_web_restrictions_client.cc", |
| 91 "browser/mock_web_restrictions_client.h", | 90 "browser/mock_web_restrictions_client.h", |
| (...skipping 15 matching lines...) Expand all Loading... |
| 107 ":test_support", | 106 ":test_support", |
| 108 "//base", | 107 "//base", |
| 109 "//base/test:test_support", | 108 "//base/test:test_support", |
| 110 "//content/test:test_support", | 109 "//content/test:test_support", |
| 111 "//net", | 110 "//net", |
| 112 "//testing/gtest", | 111 "//testing/gtest", |
| 113 "//url", | 112 "//url", |
| 114 ] | 113 ] |
| 115 } | 114 } |
| 116 } | 115 } |
| OLD | NEW |