OLD | NEW |
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 "chrome/browser/safe_browsing/incident_reporting/module_integrity_verif
ier_win.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/module_integrity_verif
ier_win.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <functional> | 11 #include <functional> |
12 #include <map> | 12 #include <map> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/files/memory_mapped_file.h" | 16 #include "base/files/memory_mapped_file.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/scoped_ptr.h" |
18 #include "base/native_library.h" | 19 #include "base/native_library.h" |
19 #include "base/scoped_native_library.h" | 20 #include "base/scoped_native_library.h" |
20 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
21 #include "base/win/pe_image.h" | 22 #include "base/win/pe_image.h" |
22 #include "chrome/browser/safe_browsing/incident_reporting/module_integrity_unitt
est_util_win.h" | 23 #include "chrome/browser/safe_browsing/incident_reporting/module_integrity_unitt
est_util_win.h" |
23 #include "chrome/common/safe_browsing/csd.pb.h" | 24 #include "chrome/common/safe_browsing/csd.pb.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
25 | 26 |
26 namespace safe_browsing { | 27 namespace safe_browsing { |
27 | 28 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 | 393 |
393 // One of the two exports now has two modifications. | 394 // One of the two exports now has two modifications. |
394 BuildModificationMap(state, &modification_map); | 395 BuildModificationMap(state, &modification_map); |
395 ASSERT_EQ(2U, modification_map.size()); | 396 ASSERT_EQ(2U, modification_map.size()); |
396 ASSERT_EQ(3U, (modification_map.begin()->second.size() + | 397 ASSERT_EQ(3U, (modification_map.begin()->second.size() + |
397 (++modification_map.begin())->second.size())); | 398 (++modification_map.begin())->second.size())); |
398 } | 399 } |
399 #endif // ADDRESS_SANITIZER | 400 #endif // ADDRESS_SANITIZER |
400 | 401 |
401 } // namespace safe_browsing | 402 } // namespace safe_browsing |
OLD | NEW |