| 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 "chrome/browser/profiles/file_path_verifier_win.h" | 5 #include "chrome/browser/profiles/file_path_verifier_win.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 TEST(FilePathVerifierTest, ComparePathsIgnoreCase) { | 10 TEST(FilePathVerifierTest, ComparePathsIgnoreCase) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 for (size_t i = 0; i < arraysize(cases); ++i) { | 32 for (size_t i = 0; i < arraysize(cases); ++i) { |
| 33 base::FilePath p1(cases[i].inputs[0]); | 33 base::FilePath p1(cases[i].inputs[0]); |
| 34 base::FilePath p2(cases[i].inputs[1]); | 34 base::FilePath p2(cases[i].inputs[1]); |
| 35 internal::PathComparisonReason reason = | 35 internal::PathComparisonReason reason = |
| 36 internal::ComparePathsIgnoreCase(p1, p2); | 36 internal::ComparePathsIgnoreCase(p1, p2); |
| 37 EXPECT_EQ(cases[i].expected, reason) << | 37 EXPECT_EQ(cases[i].expected, reason) << |
| 38 "i: " << i << ", p1: " << p1.value() << ", p2: " << p2.value(); | 38 "i: " << i << ", p1: " << p1.value() << ", p2: " << p2.value(); |
| 39 } | 39 } |
| 40 } | 40 } |
| OLD | NEW |