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

Unified Diff: ui/gl/gl_api_unittest.cc

Issue 1354483004: Re-land: ui: Add GLImage unit test framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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/gl.gyp ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_api_unittest.cc
diff --git a/ui/gl/gl_api_unittest.cc b/ui/gl/gl_api_unittest.cc
index 66c938021c65420b70d00e91049a57ba0b1955e7..a5d1a9c152289dee1fbd5d122f3dd044a2629775 100644
--- a/ui/gl/gl_api_unittest.cc
+++ b/ui/gl/gl_api_unittest.cc
@@ -40,6 +40,7 @@ class GLApiTest : public testing::Test {
num_fake_extension_strings_ = 0;
fake_extension_strings_ = nullptr;
+ DCHECK(!g_current_gl_context_tls);
g_current_gl_context_tls = new base::ThreadLocalPointer<GLApi>;
SetGLGetProcAddressProc(
@@ -53,6 +54,7 @@ class GLApiTest : public testing::Test {
void TearDown() override {
api_.reset(nullptr);
delete g_current_gl_context_tls;
+ g_current_gl_context_tls = nullptr;
SetGLImplementation(kGLImplementationNone);
fake_extension_string_ = "";
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698