| # 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" ] |
| |
| 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_ios)) { |
| sources += [ "platform_channel_server_unittest.cc" ] |
| deps += [ "//mojo/core/embedder" ] |
| } |
| |
| # TODO(crbug.com/40031409): Fix code that adds exit-time destructors and |
| # enable the diagnostic by removing this line. |
| configs += [ "//build/config/compiler:no_exit_time_destructors" ] |
| } |