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/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 Loading... |
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 |
OLD | NEW |