Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / snapshot / BUILD.gn
index 78a2823..929aa3c 100644 (file)
@@ -14,8 +14,6 @@ component("snapshot") {
     "snapshot_export.h",
     "snapshot_ios.mm",
     "snapshot_mac.mm",
-    "snapshot_win.cc",
-    "snapshot_win.h",
   ]
 
   defines = [ "SNAPSHOT_IMPLEMENTATION" ]
@@ -42,7 +40,7 @@ component("snapshot") {
 
   if (use_aura) {
     deps += [
-      #"//ui/aura",  TODO(GYP)
+      "//ui/aura",
       "//ui/compositor",
     ]
   } else {
@@ -52,44 +50,34 @@ 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",
+  ]
 
-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" ]
   }
 }