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

Side by Side Diff: sandbox/win/tests/integration_tests/integration_tests_common.h

Issue 1835003003: [Windows Sandbox] MITIGATION_EXTENSION_POINT_DISABLE support for children. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review fixes, part 1. Created 4 years, 8 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
« no previous file with comments | « sandbox/win/tests/integration_tests/hooking_win_proc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SANDBOX_TESTS_INTEGRATION_TESTS_COMMON_H_
6 #define SANDBOX_TESTS_INTEGRATION_TESTS_COMMON_H_
7
8 #include <windows.h>
9
10 // Use the same header file for DLL and importers.
11 #ifdef _DLL_EXPORTING
12 #define DECLSPEC __declspec(dllexport)
13 #else
14 #define DECLSPEC __declspec(dllimport)
15 #endif
16
17 //------------------------------------------------------------------------------
18 // Tests
19 //------------------------------------------------------------------------------
20 const wchar_t* g_extension_point_test_mutex = L"ChromeExtensionTestMutex";
21 const DWORD g_test_mutex_max_wait_ms = 10 * 1000;
22
23 //------------------------------------------------------------------------------
24 // Hooking WinProc exe.
25 //------------------------------------------------------------------------------
26 const wchar_t* g_winproc_file = L"sbox_integration_test_win_proc.exe ";
27 const wchar_t* g_winproc_class_name = L"myWindowClass";
28 const wchar_t* g_winproc_window_name = L"ChromeMitigationTests";
29 const wchar_t* g_winproc_event = L"ChromeExtensionTestEvent";
30 const DWORD g_winproc_event_max_wait_ms = 3 * 1000;
31
32 //------------------------------------------------------------------------------
33 // Hooking dll.
34 //------------------------------------------------------------------------------
35 const wchar_t* g_hook_dll_file = L"sbox_integration_test_hook_dll.dll";
36 const char* g_hook_handler_func = "HookProc";
37 const char* g_was_hook_called_func = "WasHookCalled";
38 const char* g_set_hook_func = "SetHook";
39
40 #ifdef __cplusplus
Will Harris 2016/04/12 19:39:13 this is always true, can be removed
penny 2016/04/13 22:52:27 Done.
41 extern "C" {
42 #endif
43
44 DECLSPEC LRESULT HookProc(int code, WPARAM wParam, LPARAM lParam);
45
46 DECLSPEC bool WasHookCalled();
47
48 DECLSPEC void SetHook(HHOOK handle);
49
50 #ifdef __cplusplus
51 }
52 #endif
53
54 #endif // SANDBOX_TESTS_INTEGRATION_TESTS_COMMON_H_
OLDNEW
« no previous file with comments | « sandbox/win/tests/integration_tests/hooking_win_proc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698