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

Side by Side Diff: chrome_elf/hook_util/test/hook_util_test_dll.cc

Issue 2183263003: [chrome_elf] Big ELF cleanup. Part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up tests for no chrash handling. Created 4 years, 4 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
(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 #include "chrome_elf/hook_util/test/hook_util_test_dll.h"
5
6 namespace {
7
8 DWORD g_export_call_count = 0;
9
10 } // namespace
11
12 extern "C" __declspec(dllexport) void ExportedApi() {
13 g_export_call_count++;
14 }
15
16 extern "C" __declspec(dllexport) DWORD ExportedApiCallCount() {
17 return g_export_call_count;
18 }
19
20 BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
21 return TRUE;
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698