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

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

Issue 1837483003: Move base::FreeDeleter into its own header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 <memory> 5 #include <memory>
6 #include <string> 6 #include <string>
7 7
8 #include "base/memory/free_deleter.h"
8 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
10 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
11 #include "base/win/scoped_handle.h" 12 #include "base/win/scoped_handle.h"
12 #include "base/win/scoped_process_information.h" 13 #include "base/win/scoped_process_information.h"
13 #include "base/win/windows_version.h" 14 #include "base/win/windows_version.h"
14 #include "sandbox/win/src/process_thread_interception.h" 15 #include "sandbox/win/src/process_thread_interception.h"
15 #include "sandbox/win/src/sandbox.h" 16 #include "sandbox/win/src/sandbox.h"
16 #include "sandbox/win/src/sandbox_factory.h" 17 #include "sandbox/win/src/sandbox_factory.h"
17 #include "sandbox/win/src/sandbox_policy.h" 18 #include "sandbox/win/src/sandbox_policy.h"
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 HANDLE thread = NULL; 514 HANDLE thread = NULL;
514 thread = TargetCreateThread( 515 thread = TargetCreateThread(
515 ::CreateThread, NULL, 0, &TestThreadFunc, 516 ::CreateThread, NULL, 0, &TestThreadFunc,
516 reinterpret_cast<LPVOID>(static_cast<uintptr_t>(pid)), 0, &thread_id); 517 reinterpret_cast<LPVOID>(static_cast<uintptr_t>(pid)), 0, &thread_id);
517 EXPECT_NE(static_cast<HANDLE>(NULL), thread); 518 EXPECT_NE(static_cast<HANDLE>(NULL), thread);
518 EXPECT_EQ(WAIT_OBJECT_0, WaitForSingleObject(thread, INFINITE)); 519 EXPECT_EQ(WAIT_OBJECT_0, WaitForSingleObject(thread, INFINITE));
519 EXPECT_EQ(WAIT_OBJECT_0, WaitForSingleObject(event, INFINITE)); 520 EXPECT_EQ(WAIT_OBJECT_0, WaitForSingleObject(event, INFINITE));
520 } 521 }
521 522
522 } // namespace sandbox 523 } // namespace sandbox
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698