OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" | |
10 #include "gpu/command_buffer/service/program_manager.h" | 5 #include "gpu/command_buffer/service/program_manager.h" |
11 | 6 |
12 #include <algorithm> | 7 #include <algorithm> |
13 | 8 |
14 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
15 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
16 #include "base/string_util.h" | 11 #include "base/string_util.h" |
17 #include "gpu/command_buffer/common/gl_mock.h" | 12 #include "gpu/command_buffer/common/gl_mock.h" |
18 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 13 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
19 #include "gpu/command_buffer/service/common_decoder.h" | 14 #include "gpu/command_buffer/service/common_decoder.h" |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 std::string name(name_buf, input->name_length); | 893 std::string name(name_buf, input->name_length); |
899 EXPECT_STREQ(expected.good_name, name.c_str()); | 894 EXPECT_STREQ(expected.good_name, name.c_str()); |
900 ++input; | 895 ++input; |
901 } | 896 } |
902 EXPECT_EQ(header->num_attribs + header->num_uniforms, | 897 EXPECT_EQ(header->num_attribs + header->num_uniforms, |
903 static_cast<uint32>(input - inputs)); | 898 static_cast<uint32>(input - inputs)); |
904 } | 899 } |
905 | 900 |
906 } // namespace gles2 | 901 } // namespace gles2 |
907 } // namespace gpu | 902 } // namespace gpu |
| 903 |
| 904 |
OLD | NEW |