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

Unified Diff: gpu/BUILD.gn

Issue 1640243002: command_buffer_gles2: Add test command_buffer_gles2_test for command_buffer_gles2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove debug Created 4 years, 10 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 | « build/gn_migration.gypi ('k') | gpu/command_buffer/tests/command_buffer_gles2_tests_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/BUILD.gn
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn
index 63447f15ebd7f465d732437c5168314c95c1d188..b602ed42b91d63ac3421fbc324f6761607bdd03f 100644
--- a/gpu/BUILD.gn
+++ b/gpu/BUILD.gn
@@ -60,6 +60,8 @@ shared_library("command_buffer_gles2") {
"gles2_conform_support/egl/egl.cc",
"gles2_conform_support/egl/surface.cc",
"gles2_conform_support/egl/surface.h",
+ "gles2_conform_support/egl/test_support.cc",
+ "gles2_conform_support/egl/test_support.h",
]
deps = [
@@ -81,6 +83,43 @@ shared_library("command_buffer_gles2") {
}
}
+# GYP version: //gpu/gpu.gyp:command_buffer_gles2_tests
+test("command_buffer_gles2_tests") {
+ sources = [
+ "command_buffer/tests/command_buffer_gles2_tests_main.cc",
+ "command_buffer/tests/egl_test.cc",
+ ]
+
+ deps = [
+ ":command_buffer_gles2",
+ "//base",
+ "//base/test:test_support",
+ "//base/third_party/dynamic_annotations",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+
+ defines = [
+ "COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY",
+ "EGLAPIENTRY=",
+ ]
+ if (current_os == "win") {
+ defines += [ "EGLAPI=__declspec(dllimport)" ]
+ } else {
+ defines += [ "EGLAPI=" ]
+ }
+
+ libs = []
+
+ if (is_android) {
+ libs += [ "android" ]
+ deps += [ "//ui/android:ui_java" ]
+ }
+ if (!is_component_build) {
+ configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
+ }
+}
+
source_set("test_support") {
testonly = true
sources = [
« no previous file with comments | « build/gn_migration.gypi ('k') | gpu/command_buffer/tests/command_buffer_gles2_tests_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698