Fix GL version strings in tests

Some unittests set a version string like "opengl 3.2", which is incorrect since
GL_VERSION should be major.minor[.release_number] on desktop GL. This caused the
version parser to set the version to 0.0 without an error. Added DCHECK for this
case.

BUG=None
CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel

Review URL: https://codereview.chromium.org/1727603002

Cr-Commit-Position: refs/heads/master@{#379530}
diff --git a/ui/gl/gl_version_info.cc b/ui/gl/gl_version_info.cc
index cc960b0..42616509 100644
--- a/ui/gl/gl_version_info.cc
+++ b/ui/gl/gl_version_info.cc
@@ -83,6 +83,7 @@
   }
   if (*is_es && *major_version == 3)
     *is_es3 = true;
+  DCHECK(major_version != 0);
 }
 
 }  // namespace gfx