mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2026-06-04 21:36:29 +03:00
Import chromium-64.0.3282.119
This commit is contained in:
14
testing/android/appurify_support/BUILD.gn
Normal file
14
testing/android/appurify_support/BUILD.gn
Normal file
@@ -0,0 +1,14 @@
|
||||
# Copyright 2015 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/android/rules.gni")
|
||||
|
||||
android_library("appurify_support_java") {
|
||||
chromium_code = true
|
||||
|
||||
java_files = [
|
||||
"java/src/org/chromium/test/support/ResultsBundleGenerator.java",
|
||||
"java/src/org/chromium/test/support/RobotiumBundleGenerator.java",
|
||||
]
|
||||
}
|
||||
12
testing/android/broker/BUILD.gn
Normal file
12
testing/android/broker/BUILD.gn
Normal file
@@ -0,0 +1,12 @@
|
||||
# Copyright 2015 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/android/rules.gni")
|
||||
|
||||
android_library("broker_java") {
|
||||
chromium_code = true
|
||||
|
||||
java_files =
|
||||
[ "java/src/org/chromium/test/broker/OnDeviceInstrumentationBroker.java" ]
|
||||
}
|
||||
22
testing/android/driver/BUILD.gn
Normal file
22
testing/android/driver/BUILD.gn
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright 2015 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/android/rules.gni")
|
||||
|
||||
android_apk("driver_apk") {
|
||||
android_manifest = "java/AndroidManifest.xml"
|
||||
apk_name = "OnDeviceInstrumentationDriver"
|
||||
testonly = true
|
||||
|
||||
deps = [
|
||||
"//base:base_java",
|
||||
"//base:base_java_test_support",
|
||||
"//testing/android/appurify_support:appurify_support_java",
|
||||
"//testing/android/broker:broker_java",
|
||||
"//testing/android/reporter:reporter_java",
|
||||
]
|
||||
|
||||
java_files =
|
||||
[ "java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java" ]
|
||||
}
|
||||
22
testing/android/empty_apk/empty_apk.gni
Normal file
22
testing/android/empty_apk/empty_apk.gni
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright 2017 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/android/rules.gni")
|
||||
|
||||
template("empty_apk") {
|
||||
manifest_target_name = "${target_name}__manifest"
|
||||
manifest_path = "${target_gen_dir}/${target_name}/AndroidManifest.xml"
|
||||
|
||||
jinja_template(manifest_target_name) {
|
||||
input = "//testing/android/empty_apk/AndroidManifest.xml"
|
||||
output = manifest_path
|
||||
variables = [ "package=${invoker.package_name}" ]
|
||||
}
|
||||
|
||||
android_apk(target_name) {
|
||||
forward_variables_from(invoker, "*")
|
||||
android_manifest = manifest_path
|
||||
android_manifest_dep = ":$manifest_target_name"
|
||||
}
|
||||
}
|
||||
44
testing/android/junit/BUILD.gn
Normal file
44
testing/android/junit/BUILD.gn
Normal file
@@ -0,0 +1,44 @@
|
||||
# Copyright 2014 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
assert(is_android)
|
||||
|
||||
import("//build/config/android/rules.gni")
|
||||
|
||||
java_library("junit_test_support") {
|
||||
# Skip platform checks since Robolectric depends on requires_android targets.
|
||||
bypass_platform_checks = true
|
||||
testonly = true
|
||||
java_files = [
|
||||
"java/src/org/chromium/testing/local/BackgroundShadowAsyncTask.java",
|
||||
"java/src/org/chromium/testing/local/CustomShadowAsyncTask.java",
|
||||
"java/src/org/chromium/testing/local/GtestComputer.java",
|
||||
"java/src/org/chromium/testing/local/GtestFilter.java",
|
||||
"java/src/org/chromium/testing/local/GtestListener.java",
|
||||
"java/src/org/chromium/testing/local/GtestLogger.java",
|
||||
"java/src/org/chromium/testing/local/JsonListener.java",
|
||||
"java/src/org/chromium/testing/local/JsonLogger.java",
|
||||
"java/src/org/chromium/testing/local/JunitTestArgParser.java",
|
||||
"java/src/org/chromium/testing/local/JunitTestMain.java",
|
||||
"java/src/org/chromium/testing/local/GNManifestFactory.java",
|
||||
"java/src/org/chromium/testing/local/LocalRobolectricTestRunner.java",
|
||||
"java/src/org/chromium/testing/local/PackageFilter.java",
|
||||
"java/src/org/chromium/testing/local/RunnerFilter.java",
|
||||
"java/src/org/chromium/testing/local/TestDir.java",
|
||||
]
|
||||
deps = [
|
||||
"//third_party/junit",
|
||||
"//third_party/mockito:mockito_java",
|
||||
"//third_party/robolectric:robolectric_all_java",
|
||||
]
|
||||
}
|
||||
|
||||
junit_binary("junit_unit_tests") {
|
||||
java_files = [
|
||||
"javatests/src/org/chromium/testing/local/GtestFilterTest.java",
|
||||
"javatests/src/org/chromium/testing/local/GtestLoggerTest.java",
|
||||
"javatests/src/org/chromium/testing/local/PackageFilterTest.java",
|
||||
"javatests/src/org/chromium/testing/local/RunnerFilterTest.java",
|
||||
]
|
||||
}
|
||||
71
testing/android/native_test/BUILD.gn
Normal file
71
testing/android/native_test/BUILD.gn
Normal file
@@ -0,0 +1,71 @@
|
||||
# Copyright 2014 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/android/rules.gni")
|
||||
|
||||
source_set("native_test_support") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"main_runner.cc",
|
||||
"main_runner.h",
|
||||
"native_test_launcher.cc",
|
||||
"native_test_launcher.h",
|
||||
"native_test_util.cc",
|
||||
"native_test_util.h",
|
||||
]
|
||||
deps = [
|
||||
":native_test_jni_headers",
|
||||
"//base",
|
||||
"//base/test:test_support",
|
||||
"//base/third_party/dynamic_annotations",
|
||||
"//testing/gtest",
|
||||
]
|
||||
}
|
||||
|
||||
source_set("native_test_native_code") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"native_test_jni_onload.cc",
|
||||
]
|
||||
libs = [ "log" ]
|
||||
deps = [
|
||||
":native_test_support",
|
||||
"//base",
|
||||
]
|
||||
}
|
||||
|
||||
android_library("native_main_runner_java") {
|
||||
testonly = true
|
||||
java_files = [ "java/src/org/chromium/native_test/MainRunner.java" ]
|
||||
deps = [
|
||||
"//base:base_java",
|
||||
]
|
||||
}
|
||||
|
||||
android_library("native_test_java") {
|
||||
testonly = true
|
||||
deps = [
|
||||
":native_main_runner_java",
|
||||
"//base:base_java",
|
||||
"//base:base_java_test_support",
|
||||
"//testing/android/appurify_support:appurify_support_java",
|
||||
"//testing/android/reporter:reporter_java",
|
||||
]
|
||||
java_files = [
|
||||
"java/src/org/chromium/native_test/NativeBrowserTestActivity.java",
|
||||
"java/src/org/chromium/native_test/NativeTest.java",
|
||||
"java/src/org/chromium/native_test/NativeTestInstrumentationTestRunner.java",
|
||||
"java/src/org/chromium/native_test/NativeUnitTest.java",
|
||||
"java/src/org/chromium/native_test/NativeUnitTestActivity.java",
|
||||
"java/src/org/chromium/native_test/NativeUnitTestNativeActivity.java",
|
||||
]
|
||||
}
|
||||
|
||||
generate_jni("native_test_jni_headers") {
|
||||
sources = [
|
||||
"java/src/org/chromium/native_test/MainRunner.java",
|
||||
"java/src/org/chromium/native_test/NativeTest.java",
|
||||
]
|
||||
jni_package = "testing"
|
||||
}
|
||||
18
testing/android/reporter/BUILD.gn
Normal file
18
testing/android/reporter/BUILD.gn
Normal file
@@ -0,0 +1,18 @@
|
||||
# Copyright 2015 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/android/rules.gni")
|
||||
|
||||
android_library("reporter_java") {
|
||||
chromium_code = true
|
||||
|
||||
deps = [
|
||||
"//base:base_java",
|
||||
]
|
||||
java_files = [
|
||||
"java/src/org/chromium/test/reporter/TestStatusListener.java",
|
||||
"java/src/org/chromium/test/reporter/TestStatusReceiver.java",
|
||||
"java/src/org/chromium/test/reporter/TestStatusReporter.java",
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user