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

Unified Diff: chrome/common/partial_circular_buffer_unittest.cc

Issue 1880143002: Convert chrome/common to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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: chrome/common/partial_circular_buffer_unittest.cc
diff --git a/chrome/common/partial_circular_buffer_unittest.cc b/chrome/common/partial_circular_buffer_unittest.cc
index 207f3529c23e30bd7316eee808c825043b83b4fa..f58e24b30be46a5bb2b73d03b0dd72aba7e7361f 100644
--- a/chrome/common/partial_circular_buffer_unittest.cc
+++ b/chrome/common/partial_circular_buffer_unittest.cc
@@ -12,12 +12,14 @@
// Note that desipte the number of wraps (if one or more), the reference output
// data is the same since the offset at each wrap is always the same.
+#include "chrome/common/partial_circular_buffer.h"
+
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "chrome/common/partial_circular_buffer.h"
#include "testing/gtest/include/gtest/gtest.h"
const uint32_t kWrapPosition = 20;
@@ -59,9 +61,9 @@ class PartialCircularBufferTest : public testing::Test {
}
protected:
- scoped_ptr<PartialCircularBuffer> pcb_write_;
- scoped_ptr<PartialCircularBuffer> pcb_read_;
- scoped_ptr<uint8_t[]> buffer_;
+ std::unique_ptr<PartialCircularBuffer> pcb_write_;
+ std::unique_ptr<PartialCircularBuffer> pcb_read_;
+ std::unique_ptr<uint8_t[]> buffer_;
uint32_t buffer_header_size_;
DISALLOW_COPY_AND_ASSIGN(PartialCircularBufferTest);
« no previous file with comments | « chrome/common/net/x509_certificate_model_openssl.cc ('k') | chrome/common/pepper_permission_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698