Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / base / test / BUILD.gn
index 3aefb72..add74cb 100644 (file)
@@ -8,7 +8,10 @@ if (is_android) {
   import("//build/config/android/rules.gni")
 }
 
+# GYP: //base/base.gyp:test_support_base
 source_set("test_support") {
+  # TODO http://crbug.com/412064 enable this flag all the time.
+  testonly = !is_component_build
   sources = [
     "expectations/expectation.cc",
     "expectations/expectation.h",
@@ -16,6 +19,8 @@ source_set("test_support") {
     "expectations/parser.h",
     "gtest_xml_util.cc",
     "gtest_xml_util.h",
+    "histogram_tester.cc",
+    "histogram_tester.h",
     "launcher/test_launcher.cc",
     "launcher/test_launcher.h",
     "launcher/test_result.cc",
@@ -56,8 +61,6 @@ source_set("test_support") {
     "simple_test_clock.h",
     "simple_test_tick_clock.cc",
     "simple_test_tick_clock.h",
-    "statistics_delta_reader.cc",
-    "statistics_delta_reader.h",
     "task_runner_test_template.cc",
     "task_runner_test_template.h",
     "test_file_util.cc",
@@ -67,12 +70,12 @@ source_set("test_support") {
     "test_file_util_mac.cc",
     "test_file_util_posix.cc",
     "test_file_util_win.cc",
+    "test_io_thread.cc",
+    "test_io_thread.h",
     "test_listener_ios.h",
     "test_listener_ios.mm",
     "test_pending_task.cc",
     "test_pending_task.h",
-    "test_process_killer_win.cc",
-    "test_process_killer_win.h",
     "test_reg_util_win.cc",
     "test_reg_util_win.h",
     "test_shortcut_win.cc",
@@ -93,14 +96,19 @@ source_set("test_support") {
     "thread_test_helper.h",
     "trace_event_analyzer.cc",
     "trace_event_analyzer.h",
+    "trace_to_file.cc",
+    "trace_to_file.h",
     "values_test_util.cc",
     "values_test_util.h",
   ]
-  deps = [
+
+  public_deps = [
     "//base",
-    "//base/third_party/dynamic_annotations",
     "//base:i18n",
     "//base:base_static",
+  ]
+  deps = [
+    "//base/third_party/dynamic_annotations",
     "//testing/gmock",
     "//testing/gtest",
     "//third_party/libxml"
@@ -132,6 +140,7 @@ config("perf_test_config") {
 }
 
 source_set("test_support_perf") {
+  testonly = true
   sources = [
     "run_all_perftests.cc",
   ]
@@ -141,10 +150,11 @@ source_set("test_support_perf") {
     "//testing/gtest",
   ]
 
-  direct_dependent_configs = [ ":perf_test_config" ]
+  public_configs = [ ":perf_test_config" ]
 }
 
 source_set("run_all_unittests") {
+  testonly = true
   sources = [
     "run_all_unittests.cc",
   ]