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