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 = [ |