| OLD | NEW |
| 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/message_loop/message_loop_proxy_impl.h" | 5 #include "base/message_loop/message_loop_proxy_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| 11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "testing/platform_test.h" | 13 #include "testing/platform_test.h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 | 16 |
| 17 class MessageLoopProxyImplTest : public testing::Test { | 17 class MessageLoopProxyImplTest : public testing::Test { |
| 18 public: | 18 public: |
| 19 void Release() const { | 19 void Release() const { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 test_thread->Start(); | 120 test_thread->Start(); |
| 121 message_loop_proxy = test_thread->message_loop_proxy(); | 121 message_loop_proxy = test_thread->message_loop_proxy(); |
| 122 } | 122 } |
| 123 bool ret = message_loop_proxy->PostTask( | 123 bool ret = message_loop_proxy->PostTask( |
| 124 FROM_HERE, | 124 FROM_HERE, |
| 125 Bind(&MessageLoopProxyImplTest::AssertNotRun)); | 125 Bind(&MessageLoopProxyImplTest::AssertNotRun)); |
| 126 EXPECT_FALSE(ret); | 126 EXPECT_FALSE(ret); |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace base | 129 } // namespace base |
| OLD | NEW |