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