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

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

source_set("tests") {
  testonly = true

  sources = [ "platform_handle_unittest.cc" ]

  if (is_android) {
    sources += [ "../binder_exchange_unittest.cc" ]
  }

  deps = [
    "//base",
    "//base/test:test_support",
    "//mojo/public/c/system",
    "//mojo/public/cpp/platform",
    "//mojo/public/cpp/system",
    "//testing/gtest",
  ]

  if (is_win || is_mac || (is_posix && !is_nacl && !is_ios)) {
    sources += [ "platform_channel_server_unittest.cc" ]
    deps += [ "//mojo/core/embedder" ]
  }
}