# 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.

# GYP version: mojo/mojo_public_tests.gypi:mojo_public_bindings_unittests
test("mojo_public_bindings_unittests") {
  sources = [
    "array_unittest.cc",
    "bounds_checker_unittest.cc",
    "buffer_unittest.cc",
    "connector_unittest.cc",
    "handle_passing_unittest.cc",
    "interface_ptr_unittest.cc",
    "request_response_unittest.cc",
    "router_unittest.cc",
    "sample_service_unittest.cc",
    "serialization_warning_unittest.cc",
    "string_unittest.cc",
    "struct_unittest.cc",
    "type_conversion_unittest.cc",
    "validation_unittest.cc",
  ]

  deps = [
    "//mojo/common/test:run_all_unittests",
    "//mojo/public/cpp/bindings",
    "//mojo/public/cpp/environment:standalone",
    "//mojo/public/cpp/system",
    "//mojo/public/cpp/test_support:test_utils",
    "//mojo/public/cpp/utility",
    "//mojo/public/interfaces/bindings/tests:test_interfaces",
    "//testing/gtest",
    ":mojo_public_bindings_test_utils",
  ]
}

source_set("mojo_public_bindings_test_utils") {
  sources = [
    "validation_test_input_parser.cc",
    "validation_test_input_parser.h",
  ]

  deps = [
    "//mojo/public/c/system",
  ]
}