| OLD | NEW | 
|   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 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/id_manager.h" |  10 #include "gpu/command_buffer/service/id_manager.h" | 
|   6 #include "testing/gtest/include/gtest/gtest.h" |  | 
|   7  |  11  | 
|   8 namespace gpu { |  12 namespace gpu { | 
|   9 namespace gles2 { |  13 namespace gles2 { | 
|  10  |  14  | 
|  11 class IdManagerTest : public testing::Test { |  15 class IdManagerTest : public testing::Test { | 
|  12  public: |  16  public: | 
|  13   IdManagerTest() { |  17   IdManagerTest() { | 
|  14   } |  18   } | 
|  15  |  19  | 
|  16  protected: |  20  protected: | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  65   EXPECT_FALSE(manager_.RemoveMapping(kClientId1, kServiceId1)); |  69   EXPECT_FALSE(manager_.RemoveMapping(kClientId1, kServiceId1)); | 
|  66   EXPECT_FALSE(manager_.RemoveMapping(kClientId2, kServiceId1)); |  70   EXPECT_FALSE(manager_.RemoveMapping(kClientId2, kServiceId1)); | 
|  67   EXPECT_FALSE(manager_.RemoveMapping(kClientId1, kServiceId2)); |  71   EXPECT_FALSE(manager_.RemoveMapping(kClientId1, kServiceId2)); | 
|  68   // Check we get an error if we try to map an existing id. |  72   // Check we get an error if we try to map an existing id. | 
|  69   EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId2)); |  73   EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId2)); | 
|  70   EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId1)); |  74   EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId1)); | 
|  71 } |  75 } | 
|  72  |  76  | 
|  73 }  // namespace gles2 |  77 }  // namespace gles2 | 
|  74 }  // namespace gpu |  78 }  // namespace gpu | 
|  75  |  | 
|  76  |  | 
| OLD | NEW |