| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Tests for the Command Buffer Helper. | 5 // Tests for the Command Buffer Helper. |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 EXPECT_GT(parser_get, limit); | 234 EXPECT_GT(parser_get, limit); |
| 235 } | 235 } |
| 236 } | 236 } |
| 237 } | 237 } |
| 238 | 238 |
| 239 int32 GetGetOffset() { | 239 int32 GetGetOffset() { |
| 240 return command_buffer_->GetLastState().get_offset; | 240 return command_buffer_->GetLastState().get_offset; |
| 241 } | 241 } |
| 242 | 242 |
| 243 int32 GetPutOffset() { | 243 int32 GetPutOffset() { |
| 244 return command_buffer_->GetLastState().put_offset; | 244 return command_buffer_->GetPutOffset(); |
| 245 } | 245 } |
| 246 | 246 |
| 247 int32 GetHelperGetOffset() { return helper_->get_offset(); } | 247 int32 GetHelperGetOffset() { return helper_->get_offset(); } |
| 248 | 248 |
| 249 int32 GetHelperPutOffset() { return helper_->put_; } | 249 int32 GetHelperPutOffset() { return helper_->put_; } |
| 250 | 250 |
| 251 uint32 GetHelperFlushGeneration() { return helper_->flush_generation(); } | 251 uint32 GetHelperFlushGeneration() { return helper_->flush_generation(); } |
| 252 | 252 |
| 253 error::Error GetError() { | 253 error::Error GetError() { |
| 254 return command_buffer_->GetLastState().error; | 254 return command_buffer_->GetLastState().error; |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 helper_->Finish(); | 703 helper_->Finish(); |
| 704 | 704 |
| 705 // Check that the commands did happen. | 705 // Check that the commands did happen. |
| 706 Mock::VerifyAndClearExpectations(api_mock_.get()); | 706 Mock::VerifyAndClearExpectations(api_mock_.get()); |
| 707 | 707 |
| 708 // Check the error status. | 708 // Check the error status. |
| 709 EXPECT_EQ(error::kNoError, GetError()); | 709 EXPECT_EQ(error::kNoError, GetError()); |
| 710 } | 710 } |
| 711 | 711 |
| 712 } // namespace gpu | 712 } // namespace gpu |
| OLD | NEW |