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

Side by Side Diff: chrome/browser/safe_browsing/verifier_test/verifier_test_dll.cc

Issue 451893003: Adding the VerifyModule function (and helpers) to safe browsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding verifier_test_dll.dll to unit_tests.isolate Created 6 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <windows.h> 5 #include <windows.h>
6 6
7 #include "chrome_elf/ntdll_cache.h" 7 extern "C" {
8 // Have a dummy export so that the module gets an export table entry.
9 void DummyExport() {
10 }
11 }
8 12
9 BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) { 13 BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
10 if (reason == DLL_PROCESS_ATTACH) 14 return true;
11 InitCache();
12
13 return TRUE;
14 } 15 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698