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

Unified Diff: webrtc/base/thread_unittest.cc

Issue 2835893003: Delete unused class ComThread. (Closed)
Patch Set: Created 3 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 | « webrtc/base/thread.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/thread_unittest.cc
diff --git a/webrtc/base/thread_unittest.cc b/webrtc/base/thread_unittest.cc
index 39f2b2e2cc93d6e15406ba741fc2ab76210dab84..35ea60468cea59c88beb66b83b4de3ca3bd78261 100644
--- a/webrtc/base/thread_unittest.cc
+++ b/webrtc/base/thread_unittest.cc
@@ -413,12 +413,6 @@ TEST(ThreadTest, SetNameOnSignalQueueDestroyed) {
Thread* thread2 = new AutoThread();
SetNameOnSignalQueueDestroyedTester tester2(thread2);
delete thread2;
-
-#if defined(WEBRTC_WIN)
- Thread* thread3 = new ComThread();
- SetNameOnSignalQueueDestroyedTester tester3(thread3);
- delete thread3;
-#endif
}
class AsyncInvokeTest : public testing::Test {
@@ -781,29 +775,3 @@ TEST_F(GuardedAsyncInvokeTest, FlushWithIds) {
EXPECT_FALSE(flag1.get());
EXPECT_TRUE(flag2.get());
}
-
-#if defined(WEBRTC_WIN)
-class ComThreadTest : public testing::Test, public MessageHandler {
- public:
- ComThreadTest() : done_(false) {}
- protected:
- virtual void OnMessage(Message* message) {
- HRESULT hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED);
- // S_FALSE means the thread was already inited for a multithread apartment.
- EXPECT_EQ(S_FALSE, hr);
- if (SUCCEEDED(hr)) {
- CoUninitialize();
- }
- done_ = true;
- }
- bool done_;
-};
-
-TEST_F(ComThreadTest, ComInited) {
- Thread* thread = new ComThread();
- EXPECT_TRUE(thread->Start());
- thread->Post(RTC_FROM_HERE, this, 0);
- EXPECT_TRUE_WAIT(done_, 1000);
- delete thread;
-}
-#endif
« no previous file with comments | « webrtc/base/thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698