| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 source_set("latency") { | 7 source_set("latency") { |
| 8 sources = [ | 8 sources = [ |
| 9 "latency/latency_histogram_macros.h", | 9 "latency/latency_histogram_macros.h", |
| 10 "latency_info.cc", | 10 "latency_info.cc", |
| 11 "latency_info.h", | 11 "latency_info.h", |
| 12 "latency_tracker.cc", | 12 "latency_tracker.cc", |
| 13 "latency_tracker.h", | 13 "latency_tracker.h", |
| 14 ] | 14 ] |
| 15 | 15 |
| 16 deps = [ | 16 deps = [ |
| 17 "//base", | 17 "//base", |
| 18 "//ui/gfx", | 18 "//ui/gfx", |
| 19 ] | 19 ] |
| 20 } | 20 } |
| 21 | 21 |
| 22 source_set("test_support") { |
| 23 testonly = true |
| 24 sources = [ |
| 25 "latency_info_test_support.cc", |
| 26 ] |
| 27 |
| 28 public_deps = [ |
| 29 ":latency", |
| 30 ] |
| 31 } |
| 32 |
| 22 test("latency_unittests") { | 33 test("latency_unittests") { |
| 23 sources = [ | 34 sources = [ |
| 24 "latency_info_unittest.cc", | 35 "latency_info_unittest.cc", |
| 25 ] | 36 ] |
| 26 | 37 |
| 27 deps = [ | 38 deps = [ |
| 28 ":latency", | 39 ":latency", |
| 29 "//base", | 40 "//base", |
| 30 "//base/test:test_support", | 41 "//base/test:test_support", |
| 31 "//mojo/edk/test:run_all_unittests", | 42 "//mojo/edk/test:run_all_unittests", |
| 32 "//testing/gmock", | 43 "//testing/gmock", |
| 33 "//testing/gtest", | 44 "//testing/gtest", |
| 34 ] | 45 ] |
| 35 | 46 |
| 36 if (!is_ios) { | 47 if (!is_ios) { |
| 37 sources += [ | 48 sources += [ |
| 38 "ipc/latency_info_param_traits_unittest.cc", | 49 "ipc/latency_info_param_traits_unittest.cc", |
| 39 "mojo/struct_traits_unittest.cc", | 50 "mojo/struct_traits_unittest.cc", |
| 40 ] | 51 ] |
| 41 deps += [ | 52 deps += [ |
| 42 "//ipc:test_support", | 53 "//ipc:test_support", |
| 43 "//mojo/public/cpp/bindings", | 54 "//mojo/public/cpp/bindings", |
| 44 "//ui/latency/ipc", | 55 "//ui/latency/ipc", |
| 45 "//ui/latency/mojo:test_interfaces", | 56 "//ui/latency/mojo:test_interfaces", |
| 46 ] | 57 ] |
| 47 } | 58 } |
| 48 } | 59 } |
| OLD | NEW |