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

Side by Side Diff: jingle/glue/thread_wrapper_unittest.cc

Issue 382673002: Fixes for re-enabling more MSVC level 4 warnings: misc edition #2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_message_utils.cc ('k') | jingle/glue/utils.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "jingle/glue/thread_wrapper.h" 9 #include "jingle/glue/thread_wrapper.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 .WillOnce(DoAll( 291 .WillOnce(DoAll(
292 InvokeWithoutArgs( 292 InvokeWithoutArgs(
293 this, &ThreadWrapperTest::PingMainThread), 293 this, &ThreadWrapperTest::PingMainThread),
294 DeleteMessageData())); 294 DeleteMessageData()));
295 target->Send(&handler1_, kTestMessage1, data); 295 target->Send(&handler1_, kTestMessage1, data);
296 296
297 Mock::VerifyAndClearExpectations(&handler1_); 297 Mock::VerifyAndClearExpectations(&handler1_);
298 } 298 }
299 299
300 TEST_F(ThreadWrapperTest, Dispose) { 300 TEST_F(ThreadWrapperTest, Dispose) {
301 bool deleted_; 301 bool deleted_ = false;
302 thread_->Dispose(new DeletableObject(&deleted_)); 302 thread_->Dispose(new DeletableObject(&deleted_));
303 EXPECT_FALSE(deleted_); 303 EXPECT_FALSE(deleted_);
304 message_loop_.RunUntilIdle(); 304 message_loop_.RunUntilIdle();
305 EXPECT_TRUE(deleted_); 305 EXPECT_TRUE(deleted_);
306 } 306 }
307 307
308 } // namespace jingle_glue 308 } // namespace jingle_glue
OLDNEW
« no previous file with comments | « ipc/ipc_message_utils.cc ('k') | jingle/glue/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698