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 "base/callback.h" | 5 #include "base/callback.h" |
6 #include "base/mac/scoped_nsautorelease_pool.h" | 6 #include "base/mac/scoped_nsautorelease_pool.h" |
7 #include "base/thread.h" | 7 #include "base/threading/thread.h" |
8 #include "gpu/command_buffer/common/cmd_buffer_common.h" | 8 #include "gpu/command_buffer/common/cmd_buffer_common.h" |
9 #include "gpu/command_buffer/service/command_buffer_service.h" | 9 #include "gpu/command_buffer/service/command_buffer_service.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 | 12 |
13 using base::SharedMemory; | 13 using base::SharedMemory; |
14 using testing::_; | 14 using testing::_; |
15 using testing::DoAll; | 15 using testing::DoAll; |
16 using testing::Return; | 16 using testing::Return; |
17 using testing::SetArgumentPointee; | 17 using testing::SetArgumentPointee; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 TEST_F(CommandBufferServiceTest, DefaultParseErrorIsNoError) { | 194 TEST_F(CommandBufferServiceTest, DefaultParseErrorIsNoError) { |
195 EXPECT_EQ(0, GetError()); | 195 EXPECT_EQ(0, GetError()); |
196 } | 196 } |
197 | 197 |
198 TEST_F(CommandBufferServiceTest, CanSetParseError) { | 198 TEST_F(CommandBufferServiceTest, CanSetParseError) { |
199 command_buffer_->SetParseError(error::kInvalidSize); | 199 command_buffer_->SetParseError(error::kInvalidSize); |
200 EXPECT_EQ(1, GetError()); | 200 EXPECT_EQ(1, GetError()); |
201 } | 201 } |
202 } // namespace gpu | 202 } // namespace gpu |
OLD | NEW |