OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 if (is_android) { |
| 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/android/rules.gni") |
| 8 } |
| 9 |
| 10 source_set("render_widget") { |
| 11 visibility = [ |
| 12 "//blimp/client/*", |
| 13 "//blimp/engine:browser_tests", |
| 14 ] |
| 15 |
| 16 sources = [ |
| 17 "blimp_render_widget.cc", |
| 18 "blimp_render_widget.h", |
| 19 "blimp_render_widget_delegate.h", |
| 20 "render_widget_feature.cc", |
| 21 "render_widget_feature.h", |
| 22 ] |
| 23 |
| 24 deps = [ |
| 25 "//base:base", |
| 26 "//blimp/client/core/compositor:compositor_support", |
| 27 "//blimp/client/core/input", |
| 28 "//blimp/common", |
| 29 "//blimp/net", |
| 30 "//cc", |
| 31 "//cc/proto", |
| 32 "//net:net", |
| 33 ] |
| 34 |
| 35 public_deps = [ |
| 36 "//blimp/client/core/compositor", |
| 37 "//blimp/common/proto", |
| 38 ] |
| 39 } |
| 40 |
| 41 source_set("test_support") { |
| 42 testonly = true |
| 43 |
| 44 sources = [ |
| 45 "mock_render_widget_feature_delegate.cc", |
| 46 "mock_render_widget_feature_delegate.h", |
| 47 ] |
| 48 |
| 49 deps = [ |
| 50 ":render_widget", |
| 51 "//testing/gmock", |
| 52 ] |
| 53 } |
| 54 |
| 55 source_set("unit_tests") { |
| 56 visibility = [ "//blimp/client/core:unit_tests" ] |
| 57 |
| 58 testonly = true |
| 59 |
| 60 sources = [ |
| 61 "render_widget_feature_unittest.cc", |
| 62 ] |
| 63 |
| 64 if (is_linux) { |
| 65 #TODO(khushalsagar): Run these tests for android. |
| 66 sources += [ "blimp_render_widget_unittest.cc" ] |
| 67 } |
| 68 |
| 69 deps = [ |
| 70 ":render_widget", |
| 71 ":test_support", |
| 72 "//base", |
| 73 "//base/test:test_support", |
| 74 "//blimp/client/core/compositor:compositor_support", |
| 75 "//blimp/common", |
| 76 "//blimp/common/proto", |
| 77 "//blimp/net", |
| 78 "//blimp/net:test_support", |
| 79 "//cc/proto", |
| 80 "//net", |
| 81 "//net:test_support", |
| 82 "//testing/gmock", |
| 83 "//testing/gtest", |
| 84 ] |
| 85 } |
OLD | NEW |