| 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 // This file contains the tests for the FencedAllocator class. | 5 // This file contains the tests for the FencedAllocator class. |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/memory/aligned_memory.h" | 13 #include "base/memory/aligned_memory.h" |
| 14 #include "base/message_loop/message_loop.h" |
| 14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 15 #include "gpu/command_buffer/client/cmd_buffer_helper.h" | 16 #include "gpu/command_buffer/client/cmd_buffer_helper.h" |
| 16 #include "gpu/command_buffer/client/fenced_allocator.h" | 17 #include "gpu/command_buffer/client/fenced_allocator.h" |
| 17 #include "gpu/command_buffer/service/cmd_buffer_engine.h" | 18 #include "gpu/command_buffer/service/cmd_buffer_engine.h" |
| 18 #include "gpu/command_buffer/service/command_buffer_service.h" | 19 #include "gpu/command_buffer/service/command_buffer_service.h" |
| 19 #include "gpu/command_buffer/service/command_executor.h" | 20 #include "gpu/command_buffer/service/command_executor.h" |
| 20 #include "gpu/command_buffer/service/mocks.h" | 21 #include "gpu/command_buffer/service/mocks.h" |
| 21 #include "gpu/command_buffer/service/transfer_buffer_manager.h" | 22 #include "gpu/command_buffer/service/transfer_buffer_manager.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 23 | 24 |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 EXPECT_LE(token, GetToken()); | 566 EXPECT_LE(token, GetToken()); |
| 566 | 567 |
| 567 // Free up everything. | 568 // Free up everything. |
| 568 for (unsigned int i = 0; i < kAllocCount; ++i) { | 569 for (unsigned int i = 0; i < kAllocCount; ++i) { |
| 569 allocator_->Free(pointers[i]); | 570 allocator_->Free(pointers[i]); |
| 570 EXPECT_TRUE(allocator_->CheckConsistency()); | 571 EXPECT_TRUE(allocator_->CheckConsistency()); |
| 571 } | 572 } |
| 572 } | 573 } |
| 573 | 574 |
| 574 } // namespace gpu | 575 } // namespace gpu |
| OLD | NEW |