Replace scoped_ptr with unique_ptr everywhere

But keep #including scoped_ptr.h in .h files, so as not to break
WebRTC users who expect those .h files to give them rtc::scoped_ptr.

BUG=webrtc:5520

Review-Url: https://codereview.webrtc.org/1937693002
Cr-Commit-Position: refs/heads/master@{#12581}
diff --git a/webrtc/test/testsupport/fileutils.cc b/webrtc/test/testsupport/fileutils.cc
index 2fab425..d99b990 100644
--- a/webrtc/test/testsupport/fileutils.cc
+++ b/webrtc/test/testsupport/fileutils.cc
@@ -23,7 +23,6 @@
 #else
 #include <unistd.h>
 
-#include "webrtc/base/scoped_ptr.h"
 #define GET_CURRENT_DIR getcwd
 #endif
 
@@ -36,6 +35,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include <memory>
+
 #include "webrtc/typedefs.h"  // For architecture defines
 
 namespace webrtc {
@@ -183,7 +184,7 @@
   return "";
 #else
   int len = dir.size() + prefix.size() + 2 + 6;
-  rtc::scoped_ptr<char[]> tempname(new char[len]);
+  std::unique_ptr<char[]> tempname(new char[len]);
 
   snprintf(tempname.get(), len, "%s/%sXXXXXX", dir.c_str(),
            prefix.c_str());