"snapshot_export.h",
"snapshot_ios.mm",
"snapshot_mac.mm",
- "snapshot_win.cc",
- "snapshot_win.h",
]
defines = [ "SNAPSHOT_IMPLEMENTATION" ]
if (use_aura) {
deps += [
- #"//ui/aura", TODO(GYP)
+ "//ui/aura",
"//ui/compositor",
]
} else {
}
}
-# 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",
+ ]
-if (is_win) {
- source_set("test_support") {
- sources = [
- "test/snapshot_desktop.h",
- "test/snapshot_desktop_win.cc",
- ]
- deps = [
- ":snapshot",
+ deps = [
+ ":snapshot",
+ "//base",
+ "//base/allocator",
+ "//base/test:test_support",
+ "//skia",
+ "//testing/gtest",
+ "//ui/base",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ "//ui/gl",
+ ]
+
+ if (use_aura) {
+ deps += [
+ "//ui/aura:test_support",
+ "//ui/compositor",
+ "//ui/compositor:test_support",
+ "//ui/wm",
]
+ } else {
+ sources -= [ "snapshot_aura_unittest.cc" ]
}
}