Chromium Code Reviews| Index: chrome/browser/safe_browsing/module_integrity_unittest_util.cc |
| diff --git a/chrome/browser/safe_browsing/module_integrity_unittest_util.cc b/chrome/browser/safe_browsing/module_integrity_unittest_util.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6b50e49faddbc0d5758d92ef66a5e6364fe51160 |
| --- /dev/null |
| +++ b/chrome/browser/safe_browsing/module_integrity_unittest_util.cc |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2014 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/browser/safe_browsing/module_integrity_unittest_util.h" |
| + |
| +#include <stddef.h> |
|
grt (UTC plus 2)
2014/08/06 01:28:10
unused
krstnmnlsn
2014/08/06 21:55:12
Done.
|
| + |
| +namespace safe_browsing { |
| + |
| +const wchar_t* test_dll_names[3] = { |
|
grt (UTC plus 2)
2014/08/06 01:28:10
[3] -> []
krstnmnlsn
2014/08/06 21:55:12
Done.
|
| + L"verifier_test_dll_1.dll", |
| + L"verifier_test_dll_2.dll", |
| + NULL, |
| +}; |
| + |
| +int TestDllsCount() { |
|
grt (UTC plus 2)
2014/08/06 01:28:10
size_t kTestDllNamesCount = arraysize(kTestDllName
krstnmnlsn
2014/08/06 21:55:12
Done.
|
| + int i = 0; |
| + while (test_dll_names[i] != NULL) |
| + ++i; |
| + return i; |
| +} |
| + |
| +} // namespace safe_browsing |