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

Side by Side Diff: components/password_manager/core/browser/password_manager_metrics_util_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/password_manager_metrics_util .h" 5 #include "components/password_manager/core/browser/password_manager_metrics_util .h"
6 6
7 #include <stddef.h>
8
7 #include <map> 9 #include <map>
8 10
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/prefs/pref_registry_simple.h" 12 #include "base/prefs/pref_registry_simple.h"
11 #include "base/prefs/scoped_user_pref_update.h" 13 #include "base/prefs/scoped_user_pref_update.h"
12 #include "base/prefs/testing_pref_service.h" 14 #include "base/prefs/testing_pref_service.h"
13 #include "base/values.h" 15 #include "base/values.h"
14 #include "components/password_manager/core/common/password_manager_pref_names.h" 16 #include "components/password_manager/core/common/password_manager_pref_names.h"
15 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
16 18
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 73
72 TEST_F(PasswordManagerMetricsUtilTest, MonitoredDomainGroupTest) { 74 TEST_F(PasswordManagerMetricsUtilTest, MonitoredDomainGroupTest) {
73 EXPECT_TRUE(IsMonitored("https://www.linkedin.com")); 75 EXPECT_TRUE(IsMonitored("https://www.linkedin.com"));
74 EXPECT_TRUE(IsMonitored("https://www.amazon.com")); 76 EXPECT_TRUE(IsMonitored("https://www.amazon.com"));
75 EXPECT_TRUE(IsMonitored("https://www.facebook.com")); 77 EXPECT_TRUE(IsMonitored("https://www.facebook.com"));
76 EXPECT_TRUE(IsMonitored("http://wikipedia.org")); 78 EXPECT_TRUE(IsMonitored("http://wikipedia.org"));
77 EXPECT_FALSE(IsMonitored("http://thisisnotwikipedia.org")); 79 EXPECT_FALSE(IsMonitored("http://thisisnotwikipedia.org"));
78 } 80 }
79 81
80 } // namespace password_manager 82 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698