| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |