summaryrefslogtreecommitdiff
path: root/chromium/testing
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2016-11-10 14:06:09 +0100
committerMichal Klocek <michal.klocek@qt.io>2016-11-16 13:45:02 +0000
commit777da810b25f517d54dc4b7771e42a4ea38c355b (patch)
tree675d9f4b67f68441adffb9a01e3075d8d12c0fb2 /chromium/testing
parent2eb1e44ebb98208ec9bd0acb0c410e95e8f253b9 (diff)
downloadqtwebengine-chromium-777da810b25f517d54dc4b7771e42a4ea38c355b.tar.gz
Add all gn, gni, typemap, mojom files
These file are required to gn be able to parse source tree. Change-Id: I9cb4a0b3897c1e99dd6e39832a8c55764fb6e1c6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/testing')
-rw-r--r--chromium/testing/android/appurify_support/BUILD.gn15
-rw-r--r--chromium/testing/android/broker/BUILD.gn13
-rw-r--r--chromium/testing/android/driver/BUILD.gn23
-rw-r--r--chromium/testing/android/junit/BUILD.gn44
-rw-r--r--chromium/testing/android/native_test/BUILD.gn65
-rw-r--r--chromium/testing/android/reporter/BUILD.gn19
-rw-r--r--chromium/testing/libfuzzer/tests/BUILD.gn72
7 files changed, 251 insertions, 0 deletions
diff --git a/chromium/testing/android/appurify_support/BUILD.gn b/chromium/testing/android/appurify_support/BUILD.gn
new file mode 100644
index 00000000000..871f9d0dd8c
--- /dev/null
+++ b/chromium/testing/android/appurify_support/BUILD.gn
@@ -0,0 +1,15 @@
+# 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")
+
+# GYP: //testing/android/appurify_support.gyp:appurify_support_java
+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",
+ ]
+}
diff --git a/chromium/testing/android/broker/BUILD.gn b/chromium/testing/android/broker/BUILD.gn
new file mode 100644
index 00000000000..8daa0408329
--- /dev/null
+++ b/chromium/testing/android/broker/BUILD.gn
@@ -0,0 +1,13 @@
+# 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")
+
+# GYP: //testing/android/on_device_instrumentation.gyp:broker_java
+android_library("broker_java") {
+ chromium_code = true
+
+ java_files =
+ [ "java/src/org/chromium/test/broker/OnDeviceInstrumentationBroker.java" ]
+}
diff --git a/chromium/testing/android/driver/BUILD.gn b/chromium/testing/android/driver/BUILD.gn
new file mode 100644
index 00000000000..9dd354a23a9
--- /dev/null
+++ b/chromium/testing/android/driver/BUILD.gn
@@ -0,0 +1,23 @@
+# 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")
+
+# GYP: //testing/android/on_device_instrumentation.gyp:driver_apk
+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" ]
+}
diff --git a/chromium/testing/android/junit/BUILD.gn b/chromium/testing/android/junit/BUILD.gn
new file mode 100644
index 00000000000..328f0523a94
--- /dev/null
+++ b/chromium/testing/android/junit/BUILD.gn
@@ -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")
+
+# GYP: //testing/android/junit_test.gyp:junit_test_support
+java_library("junit_test_support") {
+ 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/LocalRobolectricTestRunner.java",
+ "java/src/org/chromium/testing/local/PackageFilter.java",
+ "java/src/org/chromium/testing/local/RobolectricClasspathDependencyResolver.java",
+ "java/src/org/chromium/testing/local/RunnerFilter.java",
+ ]
+ deps = [
+ "//third_party/junit",
+ "//third_party/mockito:mockito_java",
+ "//third_party/robolectric:android-all-4.3_r2-robolectric-0",
+ "//third_party/robolectric:robolectric_java",
+ ]
+}
+
+# GYP: //testing/android/junit_test.gyp:junit_unit_tests
+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",
+ ]
+}
diff --git a/chromium/testing/android/native_test/BUILD.gn b/chromium/testing/android/native_test/BUILD.gn
new file mode 100644
index 00000000000..3f2868bc250
--- /dev/null
+++ b/chromium/testing/android/native_test/BUILD.gn
@@ -0,0 +1,65 @@
+# 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")
+
+# GYP: //testing/android/native_test.gyp:native_test_support
+source_set("native_test_support") {
+ testonly = true
+ sources = [
+ "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",
+ ]
+}
+
+# GYP: //testing/android/native_test.gyp:native_test_native_code
+source_set("native_test_native_code") {
+ testonly = true
+ sources = [
+ "native_test_jni_onload.cc",
+ ]
+ libs = [ "log" ]
+ deps = [
+ ":native_test_support",
+ "//base",
+ ]
+}
+
+# GYP: //testing/android/native_test.gyp:native_test_java
+android_library("native_test_java") {
+ testonly = true
+ deps = [
+ "//base:base_java",
+ "//base:base_java_test_support",
+ "//testing/android/appurify_support:appurify_support_java",
+ "//testing/android/reporter:reporter_java",
+ ]
+ srcjar_deps = [ "//base:base_native_libraries_gen" ]
+ 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",
+ ]
+ jar_excluded_patterns = [ "*/NativeLibraries.class" ]
+}
+
+# GYP: //testing/android/native_test.gyp:native_test_jni_headers
+generate_jni("native_test_jni_headers") {
+ sources = [
+ "java/src/org/chromium/native_test/NativeTest.java",
+ ]
+ jni_package = "testing"
+}
diff --git a/chromium/testing/android/reporter/BUILD.gn b/chromium/testing/android/reporter/BUILD.gn
new file mode 100644
index 00000000000..7086a79d3da
--- /dev/null
+++ b/chromium/testing/android/reporter/BUILD.gn
@@ -0,0 +1,19 @@
+# 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")
+
+# GYP: //testing/android/on_device_instrumentation.gyp:reporter_java
+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",
+ ]
+}
diff --git a/chromium/testing/libfuzzer/tests/BUILD.gn b/chromium/testing/libfuzzer/tests/BUILD.gn
new file mode 100644
index 00000000000..d0b1c4c2ea5
--- /dev/null
+++ b/chromium/testing/libfuzzer/tests/BUILD.gn
@@ -0,0 +1,72 @@
+# 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.
+#
+# Fuzzing Infrastructure Tests
+
+import("//testing/test.gni")
+import("//testing/libfuzzer/fuzzer_test.gni")
+
+test("libfuzzer_tests") {
+ sources = [
+ "fuzzer_launcher_test.cc",
+ ]
+ deps = [
+ ":test_config_and_dict",
+ ":test_config_only",
+ ":test_dict_from_subdir",
+ ":test_dict_only",
+ "//base",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//testing/gtest:gtest_main",
+ ]
+ data_deps = [
+ ":check_fuzzer_config",
+ ]
+}
+
+fuzzer_test("test_dict_only") {
+ sources = [
+ "../fuzzers/empty_fuzzer.cc",
+ ]
+ dict = "test.dict"
+}
+
+fuzzer_test("test_config_only") {
+ sources = [
+ "../fuzzers/empty_fuzzer.cc",
+ ]
+ libfuzzer_options = [
+ "some_test_option=test_value",
+ "max_len=1024",
+ ]
+}
+
+fuzzer_test("test_config_and_dict") {
+ sources = [
+ "../fuzzers/empty_fuzzer.cc",
+ ]
+ dict = "test.dict"
+ libfuzzer_options = [
+ "max_len=random(1337, 31337)",
+ "timeout = 666",
+ "use_traces=1",
+ ]
+}
+
+fuzzer_test("test_dict_from_subdir") {
+ sources = [
+ "../fuzzers/empty_fuzzer.cc",
+ ]
+ dict = "dicts_subdir/test_subdir.dict"
+}
+
+copy("check_fuzzer_config") {
+ sources = [
+ "check_fuzzer_config.py",
+ ]
+ outputs = [
+ "$root_build_dir/check_fuzzer_config.py",
+ ]
+}