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

Unified Diff: media/midi/midi_manager_mac_unittest.cc

Issue 1915443003: Replace scoped_ptr with std::unique_ptr in //media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptr-media-base
Patch Set: scopedptr-media: rebase 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 | « media/midi/midi_manager_android.cc ('k') | media/midi/midi_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_manager_mac_unittest.cc
diff --git a/media/midi/midi_manager_mac_unittest.cc b/media/midi/midi_manager_mac_unittest.cc
index 1955d09225bba37567b641dc7219710671868f51..c8d80e5773ecc11eaacbc03068251703a190c759 100644
--- a/media/midi/midi_manager_mac_unittest.cc
+++ b/media/midi/midi_manager_mac_unittest.cc
@@ -8,9 +8,10 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/synchronization/lock.h"
@@ -126,15 +127,15 @@ class MidiManagerMacTest : public ::testing::Test {
}
private:
- scoped_ptr<MidiManager> manager_;
- scoped_ptr<base::MessageLoop> message_loop_;
+ std::unique_ptr<MidiManager> manager_;
+ std::unique_ptr<base::MessageLoop> message_loop_;
DISALLOW_COPY_AND_ASSIGN(MidiManagerMacTest);
};
TEST_F(MidiManagerMacTest, MidiNotification) {
- scoped_ptr<FakeMidiManagerClient> client(new FakeMidiManagerClient);
+ std::unique_ptr<FakeMidiManagerClient> client(new FakeMidiManagerClient);
StartSession(client.get());
Result result = client->WaitForResult();
« no previous file with comments | « media/midi/midi_manager_android.cc ('k') | media/midi/midi_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698