Index: ui/snapshot/BUILD.gn |
diff --git a/ui/snapshot/BUILD.gn b/ui/snapshot/BUILD.gn |
index fea99c08004d4e1ec8fc5a88a64896d6bf54690a..cfbb5d5f1b8c36667bb55a5dd82968848e6b4a1b 100644 |
--- a/ui/snapshot/BUILD.gn |
+++ b/ui/snapshot/BUILD.gn |
@@ -52,35 +52,37 @@ component("snapshot") { |
} |
} |
-test("snapshot_unittests") { |
- sources = [ |
- "snapshot_aura_unittest.cc", |
- "snapshot_mac_unittest.mm", |
- "test/run_all_unittests.cc", |
- ] |
- |
- deps = [ |
- ":snapshot", |
- "//base", |
- "//base/allocator", |
- "//base/test:test_support", |
- "//skia", |
- "//testing/gtest", |
- "//ui/base", |
- "//ui/compositor:test_support", |
- "//ui/gfx", |
- "//ui/gfx/geometry", |
- "//ui/gl", |
- ] |
+if (!is_win || link_chrome_on_windows) { |
+ test("snapshot_unittests") { |
+ sources = [ |
+ "snapshot_aura_unittest.cc", |
+ "snapshot_mac_unittest.mm", |
+ "test/run_all_unittests.cc", |
+ ] |
- if (use_aura) { |
- deps += [ |
- "//ui/aura:test_support", |
- "//ui/compositor", |
+ deps = [ |
+ ":snapshot", |
+ "//base", |
+ "//base/allocator", |
+ "//base/test:test_support", |
+ "//skia", |
+ "//testing/gtest", |
+ "//ui/base", |
"//ui/compositor:test_support", |
- "//ui/wm", |
+ "//ui/gfx", |
+ "//ui/gfx/geometry", |
+ "//ui/gl", |
] |
- } else { |
- sources -= [ "snapshot_aura_unittest.cc" ] |
+ |
+ if (use_aura) { |
+ deps += [ |
+ "//ui/aura:test_support", |
+ "//ui/compositor", |
+ "//ui/compositor:test_support", |
+ "//ui/wm", |
+ ] |
+ } else { |
+ sources -= [ "snapshot_aura_unittest.cc" ] |
+ } |
} |
} |