| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 <stddef.h> |
| 5 #include <string.h> | 6 #include <string.h> |
| 6 | 7 |
| 7 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 8 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 9 #include "ios/chrome/app/safe_mode_util.h" | 10 #include "ios/chrome/app/safe_mode_util.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "testing/platform_test.h" | 12 #include "testing/platform_test.h" |
| 12 | 13 |
| 13 using std::string; | 14 using std::string; |
| 14 using std::vector; | 15 using std::vector; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 38 | 39 |
| 39 TEST_F(SafeModeUtilTest, GetSomeImages) { | 40 TEST_F(SafeModeUtilTest, GetSomeImages) { |
| 40 vector<string> all_images = safe_mode_util::GetLoadedImages(nullptr); | 41 vector<string> all_images = safe_mode_util::GetLoadedImages(nullptr); |
| 41 vector<string> usr_lib_images = safe_mode_util::GetLoadedImages("/usr/lib/"); | 42 vector<string> usr_lib_images = safe_mode_util::GetLoadedImages("/usr/lib/"); |
| 42 // There should be images under /usr/lib/, but not all of them are. | 43 // There should be images under /usr/lib/, but not all of them are. |
| 43 EXPECT_GT(usr_lib_images.size(), 0U); | 44 EXPECT_GT(usr_lib_images.size(), 0U); |
| 44 EXPECT_LT(usr_lib_images.size(), all_images.size()); | 45 EXPECT_LT(usr_lib_images.size(), all_images.size()); |
| 45 } | 46 } |
| 46 | 47 |
| 47 } // namespace | 48 } // namespace |
| OLD | NEW |