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

Side by Side Diff: ui/gl/gl_api_unittest.cc

Issue 1151093006: Added disabling EGL extensions support with --disable-extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Applied nits Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « ui/gl/egl_api_unittest.cc ('k') | ui/gl/gl_bindings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/gl/gl_gl_api_implementation.h" 8 #include "ui/gl/gl_gl_api_implementation.h"
9 #include "ui/gl/gl_implementation.h" 9 #include "ui/gl/gl_implementation.h"
10 #include "ui/gl/gl_switches.h" 10 #include "ui/gl/gl_switches.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 command_line.AppendSwitchASCII(switches::kDisableGLExtensions, 144 command_line.AppendSwitchASCII(switches::kDisableGLExtensions,
145 kFakeDisabledExtensions); 145 kFakeDisabledExtensions);
146 InitializeAPI(&command_line); 146 InitializeAPI(&command_line);
147 147
148 EXPECT_EQ(arraysize(kFilteredExtensions), GetNumExtensions()); 148 EXPECT_EQ(arraysize(kFilteredExtensions), GetNumExtensions());
149 for (uint32_t i = 0; i < arraysize(kFilteredExtensions); ++i) { 149 for (uint32_t i = 0; i < arraysize(kFilteredExtensions); ++i) {
150 EXPECT_STREQ(kFilteredExtensions[i], GetExtensioni(i)); 150 EXPECT_STREQ(kFilteredExtensions[i], GetExtensioni(i));
151 } 151 }
152 } 152 }
153 153
154 } // namespace gpu 154 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/egl_api_unittest.cc ('k') | ui/gl/gl_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698