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

Unified Diff: gpu/command_buffer/client/fenced_allocator_test.cc

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo part of clang-format Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/fenced_allocator_test.cc
diff --git a/gpu/command_buffer/client/fenced_allocator_test.cc b/gpu/command_buffer/client/fenced_allocator_test.cc
index 6abe1ba2b501de48cf28b8acc1d7d845631fbd9a..fc095454587211a4ada1d592182f217b2aba410f 100644
--- a/gpu/command_buffer/client/fenced_allocator_test.cc
+++ b/gpu/command_buffer/client/fenced_allocator_test.cc
@@ -69,11 +69,11 @@ class BaseFencedAllocatorTest : public testing::Test {
int32_t GetToken() { return command_buffer_->GetLastState().token; }
- scoped_ptr<AsyncAPIMock> api_mock_;
+ std::unique_ptr<AsyncAPIMock> api_mock_;
scoped_refptr<TransferBufferManagerInterface> transfer_buffer_manager_;
- scoped_ptr<CommandBufferService> command_buffer_;
- scoped_ptr<CommandExecutor> executor_;
- scoped_ptr<CommandBufferHelper> helper_;
+ std::unique_ptr<CommandBufferService> command_buffer_;
+ std::unique_ptr<CommandExecutor> executor_;
+ std::unique_ptr<CommandBufferHelper> helper_;
base::MessageLoop message_loop_;
};
@@ -101,7 +101,7 @@ class FencedAllocatorTest : public BaseFencedAllocatorTest {
BaseFencedAllocatorTest::TearDown();
}
- scoped_ptr<FencedAllocator> allocator_;
+ std::unique_ptr<FencedAllocator> allocator_;
};
// Checks basic alloc and free.
@@ -413,8 +413,8 @@ class FencedAllocatorWrapperTest : public BaseFencedAllocatorTest {
BaseFencedAllocatorTest::TearDown();
}
- scoped_ptr<FencedAllocatorWrapper> allocator_;
- scoped_ptr<char, base::AlignedFreeDeleter> buffer_;
+ std::unique_ptr<FencedAllocatorWrapper> allocator_;
+ std::unique_ptr<char, base::AlignedFreeDeleter> buffer_;
};
// Checks basic alloc and free.

Powered by Google App Engine
This is Rietveld 408576698