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