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

Side by Side Diff: webrtc/test/test_suite.h

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
Patch Set: Created 4 years, 7 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
« no previous file with comments | « webrtc/test/rtp_rtcp_observer.h ('k') | webrtc/test/testsupport/fileutils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 #ifndef WEBRTC_TEST_TEST_SUITE_H_ 11 #ifndef WEBRTC_TEST_TEST_SUITE_H_
12 #define WEBRTC_TEST_TEST_SUITE_H_ 12 #define WEBRTC_TEST_TEST_SUITE_H_
13 13
14 // Derived from Chromium's src/base/test/test_suite.h. 14 // Derived from Chromium's src/base/test/test_suite.h.
15 15
16 // Defines a basic test suite framework for running gtest based tests. You can 16 // Defines a basic test suite framework for running gtest based tests. You can
17 // instantiate this class in your main function and call its Run method to run 17 // instantiate this class in your main function and call its Run method to run
18 // any gtest based tests that are linked into your executable. 18 // any gtest based tests that are linked into your executable.
19 19
20 #include <memory>
21
20 #include "webrtc/base/constructormagic.h" 22 #include "webrtc/base/constructormagic.h"
21 #include "webrtc/base/scoped_ptr.h" 23 #include "webrtc/base/scoped_ptr.h"
22 24
23 namespace webrtc { 25 namespace webrtc {
24 namespace test { 26 namespace test {
25 27
26 class TraceToStderr; 28 class TraceToStderr;
27 29
28 class TestSuite { 30 class TestSuite {
29 public: 31 public:
30 TestSuite(int argc, char** argv); 32 TestSuite(int argc, char** argv);
31 virtual ~TestSuite(); 33 virtual ~TestSuite();
32 34
33 int Run(); 35 int Run();
34 36
35 protected: 37 protected:
36 // Override these for custom initialization and shutdown handling. Use these 38 // Override these for custom initialization and shutdown handling. Use these
37 // instead of putting complex code in your constructor/destructor. 39 // instead of putting complex code in your constructor/destructor.
38 virtual void Initialize(); 40 virtual void Initialize();
39 virtual void Shutdown(); 41 virtual void Shutdown();
40 42
41 RTC_DISALLOW_COPY_AND_ASSIGN(TestSuite); 43 RTC_DISALLOW_COPY_AND_ASSIGN(TestSuite);
42 44
43 private: 45 private:
44 rtc::scoped_ptr<TraceToStderr> trace_to_stderr_; 46 std::unique_ptr<TraceToStderr> trace_to_stderr_;
45 }; 47 };
46 48
47 } // namespace test 49 } // namespace test
48 } // namespace webrtc 50 } // namespace webrtc
49 51
50 #endif // TEST_TEST_SUITE_H_ 52 #endif // TEST_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « webrtc/test/rtp_rtcp_observer.h ('k') | webrtc/test/testsupport/fileutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698