| 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_
|
|
|