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

Unified Diff: remoting/signaling/mock_signal_strategy.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/signaling/log_to_server_unittest.cc ('k') | remoting/signaling/push_notification_subscriber.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/mock_signal_strategy.h
diff --git a/remoting/signaling/mock_signal_strategy.h b/remoting/signaling/mock_signal_strategy.h
index 3245931c9c555a0b93209910f6fefd012e81c62f..79c3ea5ebdf089bf8d5f524e9c67d9e579e4e969 100644
--- a/remoting/signaling/mock_signal_strategy.h
+++ b/remoting/signaling/mock_signal_strategy.h
@@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "remoting/signaling/iq_sender.h"
#include "remoting/signaling/signal_strategy.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -27,7 +28,7 @@ class MockSignalStrategy : public SignalStrategy {
// GMock currently doesn't support move-only arguments, so we have
// to use this hack here.
MOCK_METHOD1(SendStanzaPtr, bool(buzz::XmlElement* stanza));
- bool SendStanza(scoped_ptr<buzz::XmlElement> stanza) override {
+ bool SendStanza(std::unique_ptr<buzz::XmlElement> stanza) override {
return SendStanzaPtr(stanza.release());
}
};
« no previous file with comments | « remoting/signaling/log_to_server_unittest.cc ('k') | remoting/signaling/push_notification_subscriber.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698