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

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

Issue 7889040: Change X11 error handler override to allow easy X11 error checking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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"
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
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
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