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

Side by Side Diff: gpu/command_buffer/client/cmd_buffer_helper_test.cc

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.cc ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698