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

Side by Side Diff: gpu/command_buffer/service/id_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: Fix build issues Created 9 years, 3 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) 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 "gpu/command_buffer/service/id_manager.h" 5 #include "gpu/command_buffer/service/id_manager.h"
6 #if defined(USE_X11)
7 // These are defined by both gtest and Xlib so we need to undefine them before
Ami GONE FROM CHROMIUM 2011/09/21 22:21:42 An alternative is to #include gtest early, as in
dominich 2011/09/22 17:00:15 Done.
8 // including the gtest header. Obviously the gtest definition will replace the
9 // Xlib one for the remainder of this file.
10 #undef Bool
11 #undef None
12 #undef Status
13 #endif
6 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
7 15
8 namespace gpu { 16 namespace gpu {
9 namespace gles2 { 17 namespace gles2 {
10 18
11 class IdManagerTest : public testing::Test { 19 class IdManagerTest : public testing::Test {
12 public: 20 public:
13 IdManagerTest() { 21 IdManagerTest() {
14 } 22 }
15 23
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 EXPECT_FALSE(manager_.RemoveMapping(kClientId1, kServiceId1)); 73 EXPECT_FALSE(manager_.RemoveMapping(kClientId1, kServiceId1));
66 EXPECT_FALSE(manager_.RemoveMapping(kClientId2, kServiceId1)); 74 EXPECT_FALSE(manager_.RemoveMapping(kClientId2, kServiceId1));
67 EXPECT_FALSE(manager_.RemoveMapping(kClientId1, kServiceId2)); 75 EXPECT_FALSE(manager_.RemoveMapping(kClientId1, kServiceId2));
68 // Check we get an error if we try to map an existing id. 76 // Check we get an error if we try to map an existing id.
69 EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId2)); 77 EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId2));
70 EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId1)); 78 EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId1));
71 } 79 }
72 80
73 } // namespace gles2 81 } // namespace gles2
74 } // namespace gpu 82 } // namespace gpu
75
76
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698