OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 gtest.h out of order because <X11/X.h> #define's Bool & None, which |
| 6 // gtest uses as struct names (inside a namespace). This means that |
| 7 // #include'ing gtest after anything that pulls in X.h fails to compile. |
| 8 // This is http://code.google.com/p/googletest/issues/detail?id=371 |
| 9 #include "testing/gtest/include/gtest/gtest.h" |
5 #include "gpu/command_buffer/service/renderbuffer_manager.h" | 10 #include "gpu/command_buffer/service/renderbuffer_manager.h" |
6 | 11 |
7 #include "gpu/command_buffer/common/gl_mock.h" | 12 #include "gpu/command_buffer/common/gl_mock.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
9 | 14 |
10 namespace gpu { | 15 namespace gpu { |
11 namespace gles2 { | 16 namespace gles2 { |
12 | 17 |
13 class RenderbufferManagerTest : public testing::Test { | 18 class RenderbufferManagerTest : public testing::Test { |
14 public: | 19 public: |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 EXPECT_EQ(kSamples, info1->samples()); | 115 EXPECT_EQ(kSamples, info1->samples()); |
111 EXPECT_EQ(kFormat, info1->internal_format()); | 116 EXPECT_EQ(kFormat, info1->internal_format()); |
112 EXPECT_EQ(kWidth, info1->width()); | 117 EXPECT_EQ(kWidth, info1->width()); |
113 EXPECT_EQ(kHeight, info1->height()); | 118 EXPECT_EQ(kHeight, info1->height()); |
114 EXPECT_FALSE(info1->cleared()); | 119 EXPECT_FALSE(info1->cleared()); |
115 EXPECT_FALSE(info1->IsDeleted()); | 120 EXPECT_FALSE(info1->IsDeleted()); |
116 } | 121 } |
117 | 122 |
118 } // namespace gles2 | 123 } // namespace gles2 |
119 } // namespace gpu | 124 } // namespace gpu |
120 | |
121 | |
OLD | NEW |