OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 |
5 source_set("message_pump") { | 7 source_set("message_pump") { |
6 sources = [ | 8 sources = [ |
7 "handle_watcher.cc", | 9 "handle_watcher.cc", |
8 "handle_watcher.h", | 10 "handle_watcher.h", |
9 "message_pump_mojo.cc", | 11 "message_pump_mojo.cc", |
10 "message_pump_mojo.h", | 12 "message_pump_mojo.h", |
11 "message_pump_mojo_handler.h", | 13 "message_pump_mojo_handler.h", |
12 "time_helper.cc", | 14 "time_helper.cc", |
13 "time_helper.h", | 15 "time_helper.h", |
14 ] | 16 ] |
15 | 17 |
16 deps = [ | 18 deps = [ |
17 "//base", | 19 "//base", |
18 "//mojo/public/cpp/system", | 20 "//mojo/public/cpp/system", |
19 ] | 21 ] |
20 } | 22 } |
21 | 23 |
22 source_set("tests") { | 24 mojo_native_application("mojo_message_pump_apptests") { |
23 testonly = true | 25 testonly = true |
24 | 26 |
25 sources = [ | 27 sources = [ |
26 "handle_watcher_unittest.cc", | 28 "handle_watcher_unittest.cc", |
27 "message_pump_mojo_unittest.cc", | 29 "message_pump_mojo_unittest.cc", |
28 ] | 30 ] |
29 | 31 |
30 deps = [ | 32 deps = [ |
31 ":message_pump", | 33 ":message_pump", |
32 "//base", | 34 "//base", |
| 35 "//base:message_loop_tests", |
33 "//base/test:test_support", | 36 "//base/test:test_support", |
34 "//base:message_loop_tests", | 37 "//mojo/application", |
| 38 "//mojo/application:test_support", |
35 "//mojo/public/cpp/system", | 39 "//mojo/public/cpp/system", |
36 "//mojo/public/cpp/test_support:test_utils", | 40 "//mojo/public/cpp/test_support:test_utils", |
37 "//testing/gtest", | 41 "//testing/gtest", |
38 ] | 42 ] |
39 } | 43 } |
OLD | NEW |