OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//mojo/public/mojo_application.gni") |
| 6 import("//testing/test.gni") |
| 7 |
5 source_set("chromium") { | 8 source_set("chromium") { |
6 sources = [ | 9 sources = [ |
7 "default_async_waiter.cc", | 10 "default_async_waiter.cc", |
8 "default_async_waiter.h", | 11 "default_async_waiter.h", |
9 "default_logger.cc", | 12 "default_logger.cc", |
10 "default_logger.h", | 13 "default_logger.h", |
11 "environment.cc", | 14 "environment.cc", |
12 "scoped_chromium_init.cc", | 15 "scoped_chromium_init.cc", |
13 "scoped_chromium_init.h", | 16 "scoped_chromium_init.h", |
14 | 17 |
15 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.) | 18 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.) |
16 "../public/cpp/environment/async_waiter.h", | 19 "../public/cpp/environment/async_waiter.h", |
17 "../public/cpp/environment/lib/async_waiter.cc", | 20 "../public/cpp/environment/lib/async_waiter.cc", |
18 "../public/cpp/environment/lib/logging.cc", | 21 "../public/cpp/environment/lib/logging.cc", |
19 "../public/cpp/environment/logging.h", | 22 "../public/cpp/environment/logging.h", |
20 ] | 23 ] |
21 | 24 |
22 deps = [ | 25 deps = [ |
23 "//base", | 26 "//base", |
24 "//base/third_party/dynamic_annotations", | 27 "//base/third_party/dynamic_annotations", |
25 "//mojo/common", | 28 "//mojo/common", |
26 "//mojo/message_pump", | 29 "//mojo/message_pump", |
27 "//mojo/public/c/environment", | 30 "//mojo/public/c/environment", |
28 "//mojo/public/cpp/bindings:callback", | 31 "//mojo/public/cpp/bindings:callback", |
29 "//mojo/public/cpp/environment", | 32 "//mojo/public/cpp/environment", |
30 "//mojo/public/cpp/system", | 33 "//mojo/public/cpp/system", |
31 ] | 34 ] |
32 } | 35 } |
| 36 |
| 37 # TODO(vtl): Just build this as an executable/non-apptest for now. (This |
| 38 # requires depending //mojo/edk/test:run_all_perftests, which is undesirable. |
| 39 # However, we don't have a good way to automatically run perf tests that are |
| 40 # apptests and extract results.) |
| 41 test("mojo_environment_perftests") { |
| 42 sources = [ |
| 43 "async_wait_perftest.cc", |
| 44 ] |
| 45 |
| 46 deps = [ |
| 47 ":chromium", |
| 48 "//base", |
| 49 "//base/test:test_support", |
| 50 "//mojo/edk/test:run_all_perftests", |
| 51 "//mojo/message_pump", |
| 52 "//mojo/public/c/environment/tests:perftest_helpers", |
| 53 "//mojo/public/cpp/environment", |
| 54 "//testing/gtest", |
| 55 ] |
| 56 } |
OLD | NEW |