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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 component("snapshot") { | 8 component("snapshot") { |
9 sources = [ | 9 sources = [ |
10 "screenshot_grabber.cc", | 10 "screenshot_grabber.cc", |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 test("snapshot_unittests") { | 63 test("snapshot_unittests") { |
64 sources = [ | 64 sources = [ |
65 "snapshot_aura_unittest.cc", | 65 "snapshot_aura_unittest.cc", |
66 "snapshot_mac_unittest.mm", | 66 "snapshot_mac_unittest.mm", |
67 "test/run_all_unittests.cc", | 67 "test/run_all_unittests.cc", |
68 ] | 68 ] |
69 | 69 |
70 deps = [ | 70 deps = [ |
71 ":snapshot", | 71 ":snapshot", |
72 "//base", | 72 "//base", |
73 "//base/allocator", | |
74 "//base/test:test_support", | 73 "//base/test:test_support", |
75 "//skia", | 74 "//skia", |
76 "//testing/gtest", | 75 "//testing/gtest", |
77 "//ui/base", | 76 "//ui/base", |
78 "//ui/compositor:test_support", | 77 "//ui/compositor:test_support", |
79 "//ui/gfx", | 78 "//ui/gfx", |
80 "//ui/gfx/geometry", | 79 "//ui/gfx/geometry", |
81 "//ui/gl", | 80 "//ui/gl", |
82 ] | 81 ] |
83 | 82 |
84 if (use_aura) { | 83 if (use_aura) { |
85 deps += [ | 84 deps += [ |
86 "//ui/aura:test_support", | 85 "//ui/aura:test_support", |
87 "//ui/compositor", | 86 "//ui/compositor", |
88 "//ui/compositor:test_support", | 87 "//ui/compositor:test_support", |
89 "//ui/wm", | 88 "//ui/wm", |
90 ] | 89 ] |
91 } else { | 90 } else { |
92 sources -= [ "snapshot_aura_unittest.cc" ] | 91 sources -= [ "snapshot_aura_unittest.cc" ] |
93 } | 92 } |
94 } | 93 } |
OLD | NEW |