Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: components/password_manager/core/browser/psl_matching_helper_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698