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

Unified Diff: mojo/edk/system/message_in_transit_test_utils.cc

Issue 1353683005: EDK: Convert remaining scoped_ptr -> std::unique_ptr in //mojo/edk/system. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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 | « mojo/edk/system/message_in_transit_test_utils.h ('k') | mojo/edk/system/message_pipe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/message_in_transit_test_utils.cc
diff --git a/mojo/edk/system/message_in_transit_test_utils.cc b/mojo/edk/system/message_in_transit_test_utils.cc
index 0d7cc2425fd3d2748b97fdd8fb0efb9f39ca4465..7578c2bd10399df157e0d3a4144b6ab4f20fcfc6 100644
--- a/mojo/edk/system/message_in_transit_test_utils.cc
+++ b/mojo/edk/system/message_in_transit_test_utils.cc
@@ -4,17 +4,18 @@
#include "mojo/edk/system/message_in_transit_test_utils.h"
+#include "mojo/edk/util/make_unique.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
namespace system {
namespace test {
-scoped_ptr<MessageInTransit> MakeTestMessage(unsigned id) {
- return make_scoped_ptr(
- new MessageInTransit(MessageInTransit::Type::ENDPOINT_CLIENT,
- MessageInTransit::Subtype::ENDPOINT_CLIENT_DATA,
- static_cast<uint32_t>(sizeof(id)), &id));
+std::unique_ptr<MessageInTransit> MakeTestMessage(unsigned id) {
+ return util::MakeUnique<MessageInTransit>(
+ MessageInTransit::Type::ENDPOINT_CLIENT,
+ MessageInTransit::Subtype::ENDPOINT_CLIENT_DATA,
+ static_cast<uint32_t>(sizeof(id)), &id);
}
void VerifyTestMessage(const MessageInTransit* message, unsigned id) {
« no previous file with comments | « mojo/edk/system/message_in_transit_test_utils.h ('k') | mojo/edk/system/message_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698