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

Unified Diff: webrtc/rtc_base/logging_unittest.cc

Issue 2977953002: Partial Reland of Make the default ctor of rtc::Thread, protected (Closed)
Patch Set: Fix the same error elsewhere Created 3 years, 5 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 | « webrtc/rtc_base/criticalsection_unittest.cc ('k') | webrtc/rtc_base/messagequeue_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/logging_unittest.cc
diff --git a/webrtc/rtc_base/logging_unittest.cc b/webrtc/rtc_base/logging_unittest.cc
index 5e7f67c598bf66cb2b902d87cfc9210f0fc3a4e9..c80607772056bd975d7b31e4985ca2d845a6eff7 100644
--- a/webrtc/rtc_base/logging_unittest.cc
+++ b/webrtc/rtc_base/logging_unittest.cc
@@ -8,9 +8,10 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/rtc_base/logging.h"
#include "webrtc/rtc_base/fileutils.h"
#include "webrtc/rtc_base/gunit.h"
+#include "webrtc/rtc_base/logging.h"
+#include "webrtc/rtc_base/nullsocketserver.h"
#include "webrtc/rtc_base/pathutils.h"
#include "webrtc/rtc_base/stream.h"
#include "webrtc/rtc_base/thread.h"
@@ -88,6 +89,8 @@ TEST(LogTest, MultipleStreams) {
// We should restore the correct global state at the end.
class LogThread : public Thread {
public:
+ LogThread() : Thread(std::unique_ptr<SocketServer>(new NullSocketServer())) {}
+
~LogThread() override {
Stop();
}
« no previous file with comments | « webrtc/rtc_base/criticalsection_unittest.cc ('k') | webrtc/rtc_base/messagequeue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698