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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 if (use_aura) { | 49 if (use_aura) { |
50 deps += [ | 50 deps += [ |
51 "//ui/aura", | 51 "//ui/aura", |
52 "//ui/compositor", | 52 "//ui/compositor", |
53 ] | 53 ] |
54 } else { | 54 } else { |
55 sources -= [ "snapshot_aura.cc" ] | 55 sources -= [ "snapshot_aura.cc" ] |
56 } | 56 } |
57 } | 57 } |
58 | 58 |
59 if (!is_win || link_chrome_on_windows) { | 59 test("snapshot_unittests") { |
60 test("snapshot_unittests") { | 60 sources = [ |
61 sources = [ | 61 "snapshot_aura_unittest.cc", |
62 "snapshot_aura_unittest.cc", | 62 "snapshot_mac_unittest.mm", |
63 "snapshot_mac_unittest.mm", | 63 "test/run_all_unittests.cc", |
64 "test/run_all_unittests.cc", | 64 ] |
| 65 |
| 66 deps = [ |
| 67 ":snapshot", |
| 68 "//base", |
| 69 "//base/allocator", |
| 70 "//base/test:test_support", |
| 71 "//skia", |
| 72 "//testing/gtest", |
| 73 "//ui/base", |
| 74 "//ui/compositor:test_support", |
| 75 "//ui/gfx", |
| 76 "//ui/gfx/geometry", |
| 77 "//ui/gl", |
| 78 ] |
| 79 |
| 80 if (use_aura) { |
| 81 deps += [ |
| 82 "//ui/aura:test_support", |
| 83 "//ui/compositor", |
| 84 "//ui/compositor:test_support", |
| 85 "//ui/wm", |
65 ] | 86 ] |
66 | 87 } else { |
67 deps = [ | 88 sources -= [ "snapshot_aura_unittest.cc" ] |
68 ":snapshot", | |
69 "//base", | |
70 "//base/allocator", | |
71 "//base/test:test_support", | |
72 "//skia", | |
73 "//testing/gtest", | |
74 "//ui/base", | |
75 "//ui/compositor:test_support", | |
76 "//ui/gfx", | |
77 "//ui/gfx/geometry", | |
78 "//ui/gl", | |
79 ] | |
80 | |
81 if (use_aura) { | |
82 deps += [ | |
83 "//ui/aura:test_support", | |
84 "//ui/compositor", | |
85 "//ui/compositor:test_support", | |
86 "//ui/wm", | |
87 ] | |
88 } else { | |
89 sources -= [ "snapshot_aura_unittest.cc" ] | |
90 } | |
91 } | 89 } |
92 } | 90 } |
OLD | NEW |