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

Unified Diff: sandbox/win/tests/integration_tests/hooking_dll.h

Issue 2944493002: [Windows Sandbox Tests] Process Mitigations. (Closed)
Patch Set: Code review fixes, part 2. Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: sandbox/win/tests/integration_tests/hooking_dll.h
diff --git a/sandbox/win/tests/integration_tests/hooking_dll.h b/sandbox/win/tests/integration_tests/hooking_dll.h
new file mode 100644
index 0000000000000000000000000000000000000000..a52b7b472034d92638afef86a1fe62ef1a49c51f
--- /dev/null
+++ b/sandbox/win/tests/integration_tests/hooking_dll.h
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SANDBOX_TESTS_INTEGRATION_TESTS_HOOKING_DLL_H_
+#define SANDBOX_TESTS_INTEGRATION_TESTS_HOOKING_DLL_H_
+
+#include <windows.h>
+
+#ifdef BUILDING_DLL
+#define DLL_EXPORT __declspec(dllexport)
+#else
+#define DLL_EXPORT __declspec(dllimport)
+#endif
+
+namespace hooking_dll {
+
+constexpr wchar_t g_hook_dll_file[] = L"sbox_integration_test_hook_dll.dll";
+constexpr wchar_t g_hook_event[] = L"ChromeExtensionTestHookEvent";
+
+DLL_EXPORT void SetHook(HHOOK hook_handle);
+DLL_EXPORT bool WasHookCalled();
+DLL_EXPORT LRESULT HookProc(int code, WPARAM w_param, LPARAM l_param);
+
+} // namespace hooking_dll
+
+#endif // SANDBOX_TESTS_INTEGRATION_TESTS_HOOKING_DLL_H_
« no previous file with comments | « sandbox/win/src/process_mitigations_win32k_unittest.cc ('k') | sandbox/win/tests/integration_tests/hooking_dll.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698