Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / mojo / mojo_public_tests.gypi
index 94613c8..10bd212 100644 (file)
@@ -5,8 +5,8 @@
 {
   'targets': [
     {
+      # GN version: //mojo/public/c/test_support
       'target_name': 'mojo_test_support',
-      'type': 'shared_library',
       'defines': [
         'MOJO_TEST_SUPPORT_IMPLEMENTATION',
       ],
       'sources': [
         'public/c/test_support/test_support.h',
         'public/c/test_support/test_support_export.h',
+        # TODO(vtl): Convert this to thunks http://crbug.com/386799
         'public/tests/test_support_private.cc',
         'public/tests/test_support_private.h',
       ],
       'conditions': [
+        ['OS=="ios"', {
+          'type': 'static_library',
+        }, {
+          'type': 'shared_library',
+        }],
         ['OS=="mac"', {
           'xcode_settings': {
             # Make it a run-path dependent library.
@@ -34,6 +40,7 @@
       ],
     },
     {
+      # GN version: //mojo/public/cpp/test_support:test_utils
       'target_name': 'mojo_public_test_utils',
       'type': 'static_library',
       'dependencies': [
         'public/cpp/test_support/test_utils.h',
       ],
     },
+    {
+      # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils
+      'target_name': 'mojo_public_bindings_test_utils',
+      'type': 'static_library',
+      'dependencies': [
+        '../base/base.gyp:base',
+      ],
+      'sources': [
+        'public/cpp/bindings/tests/validation_test_input_parser.cc',
+        'public/cpp/bindings/tests/validation_test_input_parser.h',
+      ],
+    },
     # TODO(vtl): Reorganize the mojo_public_*_unittests.
     {
+      # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests
       'target_name': 'mojo_public_bindings_unittests',
       'type': 'executable',
       'dependencies': [
@@ -57,6 +77,7 @@
         'mojo_environment_standalone',
         'mojo_public_test_utils',
         'mojo_run_all_unittests',
+        'mojo_public_bindings_test_utils',
         'mojo_public_test_interfaces',
         'mojo_utility',
       ],
         'public/cpp/bindings/tests/request_response_unittest.cc',
         'public/cpp/bindings/tests/router_unittest.cc',
         'public/cpp/bindings/tests/sample_service_unittest.cc',
+        'public/cpp/bindings/tests/serialization_warning_unittest.cc',
         'public/cpp/bindings/tests/string_unittest.cc',
         'public/cpp/bindings/tests/struct_unittest.cc',
         'public/cpp/bindings/tests/type_conversion_unittest.cc',
-        'public/cpp/bindings/tests/validation_test_input_parser.cc',
-        'public/cpp/bindings/tests/validation_test_input_parser.h',
         'public/cpp/bindings/tests/validation_unittest.cc',
       ],
     },
     {
+      # GN version: //mojo/public/cpp/environment/tests:mojo_public_environment_unittests
       'target_name': 'mojo_public_environment_unittests',
       'type': 'executable',
       'dependencies': [
-        '../base/base.gyp:base',
         '../testing/gtest.gyp:gtest',
         'mojo_environment_standalone',
         'mojo_public_test_utils',
         'mojo_run_all_unittests',
         'mojo_utility',
       ],
+      'include_dirs': [ '..' ],
       'sources': [
         'public/cpp/environment/tests/async_waiter_unittest.cc',
         'public/cpp/environment/tests/logger_unittest.cc',
       ],
     },
     {
+      # GN version: //mojo/public/cpp/application/tests:mojo_public_application_unittests
       'target_name': 'mojo_public_application_unittests',
       'type': 'executable',
       'dependencies': [
       ],
     },
     {
+      # GN version: //mojo/public/cpp/application/tests:mojo_public_system_unittests
       'target_name': 'mojo_public_system_unittests',
       'type': 'executable',
       'dependencies': [
-        '../base/base.gyp:base',
         '../testing/gtest.gyp:gtest',
-        'mojo_cpp_bindings',
         'mojo_public_test_utils',
         'mojo_run_all_unittests',
       ],
+      'include_dirs': [ '..' ],
       'sources': [
-        'public/c/system/tests/core_unittest.cc',
-        'public/c/system/tests/core_unittest_pure_c.c',
-        'public/c/system/tests/macros_unittest.cc',
-        'public/cpp/system/tests/core_unittest.cc',
-        'public/cpp/system/tests/macros_unittest.cc',
+        '<@(mojo_public_system_unittest_sources)',
       ],
     },
     {
+      # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unittests
       'target_name': 'mojo_public_utility_unittests',
       'type': 'executable',
       'dependencies': [
-        '../base/base.gyp:base',
         '../testing/gtest.gyp:gtest',
-        'mojo_cpp_bindings',
         'mojo_public_test_utils',
         'mojo_run_all_unittests',
         'mojo_utility',
       ],
+      'include_dirs' : [ '..' ],
       'sources': [
         'public/cpp/utility/tests/mutex_unittest.cc',
         'public/cpp/utility/tests/run_loop_unittest.cc',
       ],
     },
     {
+      # GN version: //mojo/public/c/system/tests:perftests
       'target_name': 'mojo_public_system_perftests',
       'type': 'executable',
       'dependencies': [
       ],
     },
     {
+      # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces
       'target_name': 'mojo_public_test_interfaces',
       'type': 'static_library',
       'sources': [
         'public/interfaces/bindings/tests/math_calculator.mojom',
+        'public/interfaces/bindings/tests/rect.mojom',
         'public/interfaces/bindings/tests/sample_factory.mojom',
         'public/interfaces/bindings/tests/sample_import.mojom',
         'public/interfaces/bindings/tests/sample_import2.mojom',
         'public/interfaces/bindings/tests/sample_interfaces.mojom',
         'public/interfaces/bindings/tests/sample_service.mojom',
+        'public/interfaces/bindings/tests/serialization_test_structs.mojom',
         'public/interfaces/bindings/tests/test_structs.mojom',
         'public/interfaces/bindings/tests/validation_test_interfaces.mojom',
       ],
       ],
     },
     {
+      # GN version: //mojo/public/js/bindings/tests:mojo_js_unittests
       'target_name': 'mojo_js_unittests',
       'type': 'executable',
       'dependencies': [
         '../gin/gin.gyp:gin_test',
         'mojo_common_test_support',
+        'mojo_environment_standalone',
         'mojo_js_bindings_lib',
         'mojo_public_test_interfaces',
         'mojo_run_all_unittests',
+        'mojo_utility',
       ],
       'sources': [
         'public/js/bindings/tests/run_js_tests.cc',