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

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: rebase on master 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..7b3a6ec3271f0e0571926c4a438483dae83d8062 100644
--- a/gpu/command_buffer/client/fenced_allocator_test.cc
+++ b/gpu/command_buffer/client/fenced_allocator_test.cc
@@ -6,6 +6,8 @@
#include <stdint.h>
+#include <memory>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/memory/aligned_memory.h"
@@ -69,11 +71,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 +103,7 @@ class FencedAllocatorTest : public BaseFencedAllocatorTest {
BaseFencedAllocatorTest::TearDown();
}
- scoped_ptr<FencedAllocator> allocator_;
+ std::unique_ptr<FencedAllocator> allocator_;
};
// Checks basic alloc and free.
@@ -413,8 +415,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.
« no previous file with comments | « gpu/command_buffer/client/cmd_buffer_helper_test.cc ('k') | gpu/command_buffer/client/gl_in_process_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698