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("//testing/test.gni") |
| 6 |
5 component("blimp_common") { | 7 component("blimp_common") { |
6 sources = [ | 8 sources = [ |
7 # TODO(dtrainor): Remove this once the LayerTreeHost settings for Blimp | 9 # TODO(dtrainor): Remove this once the LayerTreeHost settings for Blimp |
8 # are finalized or are pushed from the server component. See | 10 # are finalized or are pushed from the server component. See |
9 # crbug.com/527655. | 11 # crbug.com/527655. |
10 "../../content/public/common/content_switches.cc", | 12 "../../content/public/common/content_switches.cc", |
11 "blimp_common_export.h", | 13 "blimp_common_export.h", |
12 "compositor/blimp_layer_tree_settings.cc", | 14 "compositor/blimp_layer_tree_settings.cc", |
13 "compositor/blimp_layer_tree_settings.h", | 15 "compositor/blimp_layer_tree_settings.h", |
| 16 "net/message_dispatcher.cc", |
| 17 "net/message_dispatcher.h", |
14 ] | 18 ] |
15 | 19 |
16 defines = [ "BLIMP_COMMON_IMPLEMENTATION=1" ] | 20 defines = [ "BLIMP_COMMON_IMPLEMENTATION=1" ] |
17 | 21 |
18 deps = [ | 22 deps = [ |
19 "//base", | 23 "//base", |
20 "//blimp/common/proto", | 24 "//blimp/common/proto", |
21 "//cc", | 25 "//cc", |
22 "//skia", | 26 "//skia", |
23 "//ui/gfx/geometry", | 27 "//ui/gfx/geometry", |
24 "//ui/gl", | 28 "//ui/gl", |
25 ] | 29 ] |
26 } | 30 } |
| 31 |
| 32 test("blimp_common_unit_tests") { |
| 33 testonly = true |
| 34 deps = [ |
| 35 ":blimp_common", |
| 36 "//base", |
| 37 "//base/test:test_support", |
| 38 "//base/test:run_all_unittests", |
| 39 "//blimp/common/proto", |
| 40 "//testing/gmock", |
| 41 ] |
| 42 sources = [ |
| 43 "net/message_dispatcher_unittest.cc", |
| 44 ] |
| 45 } |
OLD | NEW |