Index: ui/snapshot/BUILD.gn |
diff --git a/ui/snapshot/BUILD.gn b/ui/snapshot/BUILD.gn |
index 78a28237d0f6e79e7e6be2872cd5865cb81dd814..f3d3bcc26493954dfc63b345e64bf5b69e172fb8 100644 |
--- a/ui/snapshot/BUILD.gn |
+++ b/ui/snapshot/BUILD.gn |
@@ -42,7 +42,7 @@ component("snapshot") { |
if (use_aura) { |
deps += [ |
- #"//ui/aura", TODO(GYP) |
+ "//ui/aura", |
"//ui/compositor", |
] |
} else { |
@@ -52,35 +52,36 @@ component("snapshot") { |
} |
} |
-# TODO(GYP) enable this when all targets are converted and it links |
-#test("snapshot_unittests") { |
-# sources = [ |
-# "snapshot_aura_unittest.cc", |
-# "snapshot_mac_unittest.mm", |
-# "test/run_all_unittests.cc", |
-# ] |
-# |
-# deps = [ |
-# "//base", |
-# "//base/allocator", |
-# "//base/test:test_support", |
-# "//skia", |
-# "//testing/gtest", |
-# "//ui/base", |
-# "//ui/gfx", |
-# "//ui/gfx/geometry", |
-# ] |
-# |
-# if (use_aura) { |
-# deps += [ |
-# #"//ui/aura:test_support", TODO(GYP) |
-# "//ui/compositor", |
-# "//ui/compositor:test_support", |
-# ] |
-# } else { |
-# sources -= [ "snapshot_aura_unittest.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/gfx", |
+ "//ui/gfx/geometry", |
+ ] |
+ |
+ if (use_aura) { |
+ deps += [ |
+ "//ui/aura:test_support", |
+ "//ui/compositor", |
+ "//ui/compositor:test_support", |
+ "//ui/wm", |
+ ] |
+ } else { |
+ sources -= [ "snapshot_aura_unittest.cc" ] |
+ } |
+} |
if (is_win) { |
source_set("test_support") { |