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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/bwe_test_fileutils.cc

Issue 1750533002: Replace scoped_ptr with unique_ptr in webrtc/modules/remote_bitrate_estimator/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_fileutils.h" 11 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_fileutils.h"
12 12
13 #ifdef WIN32 13 #ifdef WIN32
14 #include <Winsock2.h> 14 #include <Winsock2.h>
15 #else 15 #else
16 #include <arpa/inet.h> 16 #include <arpa/inet.h>
17 #endif 17 #endif
18 #include <assert.h> 18 #include <assert.h>
19 19
20 #include "webrtc/base/scoped_ptr.h"
21 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" 20 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h"
22 #include "webrtc/test/testsupport/fileutils.h" 21 #include "webrtc/test/testsupport/fileutils.h"
23 22
24 namespace webrtc { 23 namespace webrtc {
25 namespace testing { 24 namespace testing {
26 namespace bwe { 25 namespace bwe {
27 26
28 ResourceFileReader::~ResourceFileReader() { 27 ResourceFileReader::~ResourceFileReader() {
29 if (file_ != NULL) { 28 if (file_ != NULL) {
30 fclose(file_); 29 fclose(file_);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 BWE_TEST_LOGGING_CONTEXT("OutputFileWriter"); 87 BWE_TEST_LOGGING_CONTEXT("OutputFileWriter");
89 BWE_TEST_LOGGING_LOG1("Create", "Can't write file: %s", filepath.c_str()); 88 BWE_TEST_LOGGING_LOG1("Create", "Can't write file: %s", filepath.c_str());
90 return NULL; 89 return NULL;
91 } else { 90 } else {
92 return new OutputFileWriter(file); 91 return new OutputFileWriter(file);
93 } 92 }
94 } 93 }
95 } // namespace bwe 94 } // namespace bwe
96 } // namespace testing 95 } // namespace testing
97 } // namespace webrtc 96 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698