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

Unified Diff: gpu/command_buffer/client/query_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
Index: gpu/command_buffer/client/query_tracker_unittest.cc
diff --git a/gpu/command_buffer/client/query_tracker_unittest.cc b/gpu/command_buffer/client/query_tracker_unittest.cc
index a110087c3588e9fd8764b6721b7da855743ec681..78ab936d11d10e5f21a15adfa138d6e2cbf3fa9e 100644
--- a/gpu/command_buffer/client/query_tracker_unittest.cc
+++ b/gpu/command_buffer/client/query_tracker_unittest.cc
@@ -10,9 +10,9 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <vector>
-#include "base/memory/scoped_ptr.h"
#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"
@@ -45,10 +45,10 @@ class QuerySyncManagerTest : public testing::Test {
command_buffer_.reset();
}
- scoped_ptr<CommandBuffer> command_buffer_;
- scoped_ptr<GLES2CmdHelper> helper_;
- scoped_ptr<MappedMemoryManager> mapped_memory_;
- scoped_ptr<QuerySyncManager> sync_manager_;
+ std::unique_ptr<CommandBuffer> command_buffer_;
+ std::unique_ptr<GLES2CmdHelper> helper_;
+ std::unique_ptr<MappedMemoryManager> mapped_memory_;
+ std::unique_ptr<QuerySyncManager> sync_manager_;
};
TEST_F(QuerySyncManagerTest, Basic) {
@@ -113,10 +113,10 @@ class QueryTrackerTest : public testing::Test {
uint32_t GetFlushGeneration() { return helper_->flush_generation(); }
- scoped_ptr<CommandBuffer> command_buffer_;
- scoped_ptr<GLES2CmdHelper> helper_;
- scoped_ptr<MappedMemoryManager> mapped_memory_;
- scoped_ptr<QueryTracker> query_tracker_;
+ std::unique_ptr<CommandBuffer> command_buffer_;
+ std::unique_ptr<GLES2CmdHelper> helper_;
+ std::unique_ptr<MappedMemoryManager> mapped_memory_;
+ std::unique_ptr<QueryTracker> query_tracker_;
};
TEST_F(QueryTrackerTest, Basic) {
« no previous file with comments | « gpu/command_buffer/client/program_info_manager_unittest.cc ('k') | gpu/command_buffer/client/ring_buffer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698