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

Side by Side Diff: gpu/command_buffer/service/feature_info_unittest.cc

Issue 12326146: Refactor/Rename a bunch of GPU stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "gpu/command_buffer/service/feature_info.h" 5 #include "gpu/command_buffer/service/feature_info.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "gpu/command_buffer/service/test_helper.h" 8 #include "gpu/command_buffer/service/test_helper.h"
9 #include "gpu/command_buffer/service/texture_manager.h" 9 #include "gpu/command_buffer/service/texture_manager.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 info_ = new FeatureInfo(); 50 info_ = new FeatureInfo();
51 } 51 }
52 52
53 virtual void TearDown() { 53 virtual void TearDown() {
54 info_ = NULL; 54 info_ = NULL;
55 ::gfx::GLInterface::SetGLInterface(NULL); 55 ::gfx::GLInterface::SetGLInterface(NULL);
56 gl_.reset(); 56 gl_.reset();
57 } 57 }
58 58
59 scoped_ptr< ::testing::StrictMock< ::gfx::MockGLInterface> > gl_; 59 scoped_ptr< ::testing::StrictMock< ::gfx::MockGLInterface> > gl_;
60 FeatureInfo::Ref info_; 60 scoped_refptr<FeatureInfo> info_;
61 }; 61 };
62 62
63 namespace { 63 namespace {
64 64
65 struct FormatInfo { 65 struct FormatInfo {
66 GLenum format; 66 GLenum format;
67 const GLenum* types; 67 const GLenum* types;
68 size_t count; 68 size_t count;
69 }; 69 };
70 70
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 TEST_F(FeatureInfoTest, InitializeOES_element_index_uint) { 794 TEST_F(FeatureInfoTest, InitializeOES_element_index_uint) {
795 SetupInitExpectations("GL_OES_element_index_uint"); 795 SetupInitExpectations("GL_OES_element_index_uint");
796 info_->Initialize(NULL); 796 info_->Initialize(NULL);
797 EXPECT_THAT(info_->extensions(), 797 EXPECT_THAT(info_->extensions(),
798 HasSubstr("GL_OES_element_index_uint")); 798 HasSubstr("GL_OES_element_index_uint"));
799 EXPECT_TRUE(info_->validators()->index_type.IsValid(GL_UNSIGNED_INT)); 799 EXPECT_TRUE(info_->validators()->index_type.IsValid(GL_UNSIGNED_INT));
800 } 800 }
801 801
802 } // namespace gles2 802 } // namespace gles2
803 } // namespace gpu 803 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/framebuffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698