Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: ui/ozone/gl/BUILD.gn

Issue 2254303002: Move GLImageOzoneNativePixmap tests to src/ui/ozone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try as console test. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/test/run_all_unittests.cc ('k') | ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/gl/BUILD.gn
diff --git a/ui/ozone/gl/BUILD.gn b/ui/ozone/gl/BUILD.gn
index a918481895a62ecc97b7dee8a911facf56bb8911..a0c0e8e82f7e59bbfc5db6b50dbea479846c95a8 100644
--- a/ui/ozone/gl/BUILD.gn
+++ b/ui/ozone/gl/BUILD.gn
@@ -2,6 +2,15 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/linux/pkg_config.gni")
+import("//testing/test.gni")
+
+if (target_os == "chromeos") {
+ pkg_config("libdrm") {
+ packages = [ "libdrm" ]
+ }
+}
+
component("gl") {
sources = [
"gl_image_ozone_native_pixmap.cc",
@@ -17,3 +26,30 @@ component("gl") {
"//ui/ozone:ozone_base",
]
}
+
+test("ozone_gl_unittests") {
+ sources = [
+ "gl_image_ozone_native_pixmap_unittest.cc",
+ ]
+
+ if (target_os == "chromeos" && target_cpu != "arm") {
+ sources += [ "gl_image_ozone_native_pixmap_drm_unittest.cc" ]
+ }
+
+ deps = [
+ "//base/test:test_support",
+ "//testing/gtest",
+ "//ui/gfx",
+ "//ui/gl:run_all_unittests",
+ "//ui/gl:test_support",
+ "//ui/ozone",
+ ]
+
+ if (target_os == "chromeos") {
+ configs += [ ":libdrm" ]
+ }
+
+ data_deps = [
+ "//third_party/mesa:osmesa",
+ ]
+}
« no previous file with comments | « ui/gl/test/run_all_unittests.cc ('k') | ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698