| 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/utility/safe_browsing/mac/dmg_test_utils.h" | 5 #include "chrome/utility/safe_browsing/mac/dmg_test_utils.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 9 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 10 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 14 |
| 13 namespace safe_browsing { | 15 namespace safe_browsing { |
| 14 namespace dmg { | 16 namespace dmg { |
| 15 namespace test { | 17 namespace test { |
| 16 | 18 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 38 | 40 |
| 39 data->insert(data->end(), buffer, &buffer[bytes_read]); | 41 data->insert(data->end(), buffer, &buffer[bytes_read]); |
| 40 } while (bytes_read != 0); | 42 } while (bytes_read != 0); |
| 41 | 43 |
| 42 return true; | 44 return true; |
| 43 } | 45 } |
| 44 | 46 |
| 45 } // namespace test | 47 } // namespace test |
| 46 } // namespace dmg | 48 } // namespace dmg |
| 47 } // namespace safe_browsing | 49 } // namespace safe_browsing |
| OLD | NEW |