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

Unified Diff: gpu/command_buffer/client/buffer_tracker_unittest.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
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/client_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/buffer_tracker_unittest.cc
diff --git a/gpu/command_buffer/client/buffer_tracker_unittest.cc b/gpu/command_buffer/client/buffer_tracker_unittest.cc
index c44d3849fab306922ff85ec2cd5b37146b32fa91..b8d2a7d51cf27ff23901ec8c8b83ddb6cd384354 100644
--- a/gpu/command_buffer/client/buffer_tracker_unittest.cc
+++ b/gpu/command_buffer/client/buffer_tracker_unittest.cc
@@ -10,7 +10,9 @@
#include <GLES2/gl2ext.h>
#include <stddef.h>
#include <stdint.h>
-#include "base/memory/scoped_ptr.h"
+
+#include <memory>
+
#include "gpu/command_buffer/client/client_test_helper.h"
#include "gpu/command_buffer/client/gles2_cmd_helper.h"
#include "gpu/command_buffer/client/mapped_memory.h"
@@ -67,10 +69,10 @@ class BufferTrackerTest : public testing::Test {
command_buffer_.reset();
}
- scoped_ptr<MockClientCommandBufferImpl> command_buffer_;
- scoped_ptr<GLES2CmdHelper> helper_;
- scoped_ptr<MappedMemoryManager> mapped_memory_;
- scoped_ptr<BufferTracker> buffer_tracker_;
+ std::unique_ptr<MockClientCommandBufferImpl> command_buffer_;
+ std::unique_ptr<GLES2CmdHelper> helper_;
+ std::unique_ptr<MappedMemoryManager> mapped_memory_;
+ std::unique_ptr<BufferTracker> buffer_tracker_;
};
TEST_F(BufferTrackerTest, Basic) {
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/client_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698