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 "components/password_manager/core/browser/psl_matching_helper.h" | 5 #include "components/password_manager/core/browser/psl_matching_helper.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
8 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
10 | 12 |
11 namespace password_manager { | 13 namespace password_manager { |
12 | 14 |
13 namespace { | 15 namespace { |
14 | 16 |
15 TEST(PSLMatchingUtilsTest, IsPublicSuffixDomainMatch) { | 17 TEST(PSLMatchingUtilsTest, IsPublicSuffixDomainMatch) { |
16 struct TestPair { | 18 struct TestPair { |
17 const char* url1; | 19 const char* url1; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 EXPECT_EQ(pairs[i].should_match, | 54 EXPECT_EQ(pairs[i].should_match, |
53 IsPublicSuffixDomainMatch(form1.signon_realm, form2.signon_realm)) | 55 IsPublicSuffixDomainMatch(form1.signon_realm, form2.signon_realm)) |
54 << "First URL = " << pairs[i].url1 | 56 << "First URL = " << pairs[i].url1 |
55 << ", second URL = " << pairs[i].url2; | 57 << ", second URL = " << pairs[i].url2; |
56 } | 58 } |
57 } | 59 } |
58 | 60 |
59 } // namespace | 61 } // namespace |
60 | 62 |
61 } // namespace password_manager | 63 } // namespace password_manager |
OLD | NEW |