1 // Copyright 2013 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.
5 #include "chrome/browser/install_verification/win/module_verification_test.h"
10 #include "chrome/browser/install_verification/win/loaded_modules_snapshot.h"
11 #include "chrome/browser/install_verification/win/module_list.h"
13 std::set
<size_t> ModuleVerificationTest::reported_module_ids_
;
15 void ModuleVerificationTest::SetUp() {
16 reported_module_ids_
.clear();
19 bool ModuleVerificationTest::GetLoadedModuleInfoSet(
20 std::set
<ModuleInfo
>* loaded_module_info_set
) {
21 std::vector
<HMODULE
> snapshot
;
22 if (!GetLoadedModulesSnapshot(&snapshot
))
24 ModuleList::FromLoadedModuleSnapshot(snapshot
)->GetModuleInfoSet(
25 loaded_module_info_set
);
30 void ModuleVerificationTest::ReportModule(size_t module_id
) {
31 reported_module_ids_
.insert(module_id
);