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

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

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 months 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 // This file contains the tests for the RingBuffer class. 5 // This file contains the tests for the RingBuffer class.
6 6
7 #include "gpu/command_buffer/client/ring_buffer.h" 7 #include "gpu/command_buffer/client/ring_buffer.h"
8 8
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/bind_helpers.h" 14 #include "base/bind_helpers.h"
15 #include "base/message_loop/message_loop.h"
15 #include "base/run_loop.h" 16 #include "base/run_loop.h"
16 #include "gpu/command_buffer/client/cmd_buffer_helper.h" 17 #include "gpu/command_buffer/client/cmd_buffer_helper.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
24 namespace gpu { 25 namespace gpu {
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // Discarding the middle allocation should turn it into padding. 427 // Discarding the middle allocation should turn it into padding.
427 allocator_->DiscardBlock(ptr2); 428 allocator_->DiscardBlock(ptr2);
428 EXPECT_EQ(0u, allocator_->GetLargestFreeSizeNoWaiting()); 429 EXPECT_EQ(0u, allocator_->GetLargestFreeSizeNoWaiting());
429 430
430 // Discarding the first allocation should discard the middle padding as well. 431 // Discarding the first allocation should discard the middle padding as well.
431 allocator_->DiscardBlock(ptr1); 432 allocator_->DiscardBlock(ptr1);
432 EXPECT_EQ(kAlloc1 + kAlloc2, allocator_->GetLargestFreeSizeNoWaiting()); 433 EXPECT_EQ(kAlloc1 + kAlloc2, allocator_->GetLargestFreeSizeNoWaiting());
433 } 434 }
434 435
435 } // namespace gpu 436 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698