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

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

Issue 8052015: Revert 102978 - Change X11 error handler override to allow easy X11 error checking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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) 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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/id_manager_unittest.cc ('k') | gpu/command_buffer/service/renderbuffer_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698