OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/sandboxed_dmg_analyzer_mac.h" | 5 #include "chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac.h" |
6 | 6 |
7 #include <mach-o/loader.h> | 7 #include <mach-o/loader.h> |
| 8 #include <stdint.h> |
8 | 9 |
9 #include "base/bind.h" | 10 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
11 #include "base/path_service.h" | 13 #include "base/path_service.h" |
12 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
13 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
14 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
15 #include "chrome/common/safe_browsing/zip_analyzer_results.h" | 17 #include "chrome/common/safe_browsing/zip_analyzer_results.h" |
16 #include "content/public/test/test_browser_thread_bundle.h" | 18 #include "content/public/test/test_browser_thread_bundle.h" |
17 #include "content/public/test/test_utils.h" | 19 #include "content/public/test/test_utils.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
19 | 21 |
20 namespace safe_browsing { | 22 namespace safe_browsing { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 ADD_FAILURE() << "Unepxected result file " << binary.file_basename(); | 136 ADD_FAILURE() << "Unepxected result file " << binary.file_basename(); |
135 } | 137 } |
136 } | 138 } |
137 | 139 |
138 EXPECT_TRUE(got_executable); | 140 EXPECT_TRUE(got_executable); |
139 EXPECT_TRUE(got_dylib); | 141 EXPECT_TRUE(got_dylib); |
140 } | 142 } |
141 | 143 |
142 } // namespace | 144 } // namespace |
143 } // namespace safe_browsing | 145 } // namespace safe_browsing |
OLD | NEW |