chromium/mojo/public/cpp/system/tests/BUILD.gn

# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/features.gni")

source_set("tests") {
  testonly = true

  sources = [
    "core_unittest.cc",
    "data_pipe_drainer_unittest.cc",
    "data_pipe_producer_unittest.cc",
    "data_pipe_unittest.cc",
    "handle_signal_tracker_unittest.cc",
    "handle_signals_state_unittest.cc",
    "scope_to_message_pipe_unittest.cc",
    "simple_watcher_unittest.cc",
    "string_data_source_unittest.cc",
    "wait_set_unittest.cc",
    "wait_unittest.cc",
  ]

  if (use_blink) {
    sources += [ "invitation_unittest.cc" ]
  }

  deps = [
    "//base",
    "//base/test:test_support",
    "//mojo/core/embedder",
    "//mojo/core/test:test_support",
    "//mojo/public/c/system/tests",
    "//mojo/public/cpp/platform",
    "//mojo/public/cpp/system",
    "//mojo/public/cpp/test_support:test_utils",
    "//testing/gtest",
  ]
}