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 "gpu/command_buffer/client/transfer_buffer.h" | 7 #include "gpu/command_buffer/client/transfer_buffer.h" |
8 | 8 |
| 9 #include "base/compiler_specific.h" |
9 #include "gpu/command_buffer/client/client_test_helper.h" | 10 #include "gpu/command_buffer/client/client_test_helper.h" |
10 #include "gpu/command_buffer/client/cmd_buffer_helper.h" | 11 #include "gpu/command_buffer/client/cmd_buffer_helper.h" |
11 #include "gpu/command_buffer/common/command_buffer.h" | 12 #include "gpu/command_buffer/common/command_buffer.h" |
12 #include "gpu/command_buffer/common/compiler_specific.h" | |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 | 15 |
16 using ::testing::_; | 16 using ::testing::_; |
17 using ::testing::AtMost; | 17 using ::testing::AtMost; |
18 using ::testing::Invoke; | 18 using ::testing::Invoke; |
19 using ::testing::Return; | 19 using ::testing::Return; |
20 using ::testing::SetArgPointee; | 20 using ::testing::SetArgPointee; |
21 using ::testing::StrictMock; | 21 using ::testing::StrictMock; |
22 | 22 |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 | 460 |
461 // Check it's the default size. | 461 // Check it's the default size. |
462 EXPECT_EQ( | 462 EXPECT_EQ( |
463 kStartTransferBufferSize - kStartingOffset, | 463 kStartTransferBufferSize - kStartingOffset, |
464 transfer_buffer_->GetCurrentMaxAllocationWithoutRealloc()); | 464 transfer_buffer_->GetCurrentMaxAllocationWithoutRealloc()); |
465 } | 465 } |
466 | 466 |
467 } // namespace gpu | 467 } // namespace gpu |
468 | 468 |
469 | 469 |
OLD | NEW |