| Index: chrome_elf/hook_util/test/hook_util_test_dll.cc
|
| diff --git a/chrome_elf/hook_util/test/hook_util_test_dll.cc b/chrome_elf/hook_util/test/hook_util_test_dll.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3f983906537735c48aaeca9a48d2197f6f27f0b5
|
| --- /dev/null
|
| +++ b/chrome_elf/hook_util/test/hook_util_test_dll.cc
|
| @@ -0,0 +1,22 @@
|
| +// 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.
|
| +#include "chrome_elf/hook_util/test/hook_util_test_dll.h"
|
| +
|
| +namespace {
|
| +
|
| +DWORD g_export_call_count = 0;
|
| +
|
| +} // namespace
|
| +
|
| +extern "C" __declspec(dllexport) void ExportedApi() {
|
| + g_export_call_count++;
|
| +}
|
| +
|
| +extern "C" __declspec(dllexport) DWORD ExportedApiCallCount() {
|
| + return g_export_call_count;
|
| +}
|
| +
|
| +BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
|
| + return TRUE;
|
| +}
|
|
|