| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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 "sandbox/win/src/win2k_threadpool.h" | 5 #include "sandbox/win/src/win2k_threadpool.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 void __stdcall EmptyCallBack(void*, unsigned char) { | 8 void __stdcall EmptyCallBack(void*, unsigned char) { |
| 9 } | 9 } |
| 10 | 10 |
| 11 void __stdcall TestCallBack(void* context, unsigned char) { | 11 void __stdcall TestCallBack(void* context, unsigned char) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 EXPECT_TRUE(thread_pool.UnRegisterWaits(this)); | 85 EXPECT_TRUE(thread_pool.UnRegisterWaits(this)); |
| 86 EXPECT_EQ(0, thread_pool.OutstandingWaits()); | 86 EXPECT_EQ(0, thread_pool.OutstandingWaits()); |
| 87 | 87 |
| 88 EXPECT_EQ(WAIT_TIMEOUT, ::SignalObjectAndWait(event1, event2, 1000, FALSE)); | 88 EXPECT_EQ(WAIT_TIMEOUT, ::SignalObjectAndWait(event1, event2, 1000, FALSE)); |
| 89 | 89 |
| 90 EXPECT_EQ(TRUE, ::CloseHandle(event1)); | 90 EXPECT_EQ(TRUE, ::CloseHandle(event1)); |
| 91 EXPECT_EQ(TRUE, ::CloseHandle(event2)); | 91 EXPECT_EQ(TRUE, ::CloseHandle(event2)); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace sandbox | 94 } // namespace sandbox |
| OLD | NEW |