Chromium Code Reviews| Index: chrome/browser/safe_browsing/module_integrity_verifier_win.cc |
| diff --git a/chrome/browser/safe_browsing/module_integrity_verifier_win.cc b/chrome/browser/safe_browsing/module_integrity_verifier_win.cc |
| index 0505723c5bfe97eb091b25fa12a2851071782f42..101544d9e299081230e3c69d9630ab0fd65c35c5 100644 |
| --- a/chrome/browser/safe_browsing/module_integrity_verifier_win.cc |
| +++ b/chrome/browser/safe_browsing/module_integrity_verifier_win.cc |
| @@ -14,6 +14,33 @@ |
| namespace safe_browsing { |
| +const wchar_t* test_dll_names[kTestDllsMaxCount] = { |
|
csharp
2014/08/05 15:46:33
Same comment about test data (lines 17->28)
krstnmnlsn
2014/08/05 23:07:25
Done.
|
| + L"verifier_test_dll_1.dll", |
| + L"verifier_test_dll_2.dll", |
| + NULL, |
| +}; |
| + |
| +int TestDllsCount() { |
| + int i = 0; |
| + while (test_dll_names[i] != NULL) |
| + ++i; |
| + return i; |
| +} |
| + |
| +const wchar_t* modules_to_verify[kModulesToVerifyMaxCount] = { |
| + L"chrome.dll", |
| + L"chrome_elf.dll", |
| + L"ntdll.dll", |
| + NULL, |
| +}; |
| + |
| +int ModulesToVerifyCount() { |
| + int i = 0; |
| + while (modules_to_verify[i] != NULL) |
| + ++i; |
| + return i; |
| +} |
| + |
| struct ModuleVerificationState { |
| explicit ModuleVerificationState(HMODULE hModule); |
| ~ModuleVerificationState(); |