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

Side by Side Diff: sandbox/win/src/threadpool_unittest.cc

Issue 10783004: Move Windows Sandbox, trybots version (don't commit me!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to top of tree Created 8 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 | « sandbox/win/src/target_services.cc ('k') | sandbox/win/src/unload_dll_test.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/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) {
12 HANDLE event = reinterpret_cast<HANDLE>(context); 12 HANDLE event = reinterpret_cast<HANDLE>(context);
13 ::SetEvent(event); 13 ::SetEvent(event);
14 } 14 }
15 15
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « sandbox/win/src/target_services.cc ('k') | sandbox/win/src/unload_dll_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698