| 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/binary_integrity_analy
zer_win.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_analy
zer_win.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/test/scoped_path_override.h" | 14 #include "base/test/scoped_path_override.h" |
| 15 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" | 15 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" |
| 16 #include "chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver
.h" | 16 #include "chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver
.h" |
| 17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
| 18 #include "chrome/common/chrome_version.h" | 18 #include "chrome/common/chrome_version.h" |
| 19 #include "components/safe_browsing/csd.pb.h" | 19 #include "chrome/common/safe_browsing/csd.pb.h" |
| 20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 22 |
| 23 using ::testing::_; | 23 using ::testing::_; |
| 24 using ::testing::StrictMock; | 24 using ::testing::StrictMock; |
| 25 | 25 |
| 26 namespace safe_browsing { | 26 namespace safe_browsing { |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 std::unique_ptr<ClientIncidentReport_IncidentData> incident_data( | 135 std::unique_ptr<ClientIncidentReport_IncidentData> incident_data( |
| 136 incident->TakePayload()); | 136 incident->TakePayload()); |
| 137 ASSERT_TRUE(incident_data->has_binary_integrity()); | 137 ASSERT_TRUE(incident_data->has_binary_integrity()); |
| 138 ASSERT_TRUE(incident_data->binary_integrity().has_file_basename()); | 138 ASSERT_TRUE(incident_data->binary_integrity().has_file_basename()); |
| 139 ASSERT_EQ("chrome_elf.dll", | 139 ASSERT_EQ("chrome_elf.dll", |
| 140 incident_data->binary_integrity().file_basename()); | 140 incident_data->binary_integrity().file_basename()); |
| 141 ASSERT_TRUE(incident_data->binary_integrity().has_signature()); | 141 ASSERT_TRUE(incident_data->binary_integrity().has_signature()); |
| 142 } | 142 } |
| 143 | 143 |
| 144 } // namespace safe_browsing | 144 } // namespace safe_browsing |
| OLD | NEW |