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

Side by Side Diff: chrome/browser/password_manager/password_manager_metrics_util_unittest.cc

Issue 23140005: Added of new UMA signals in order to be able to discover early if the "save password" feature gets … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review 6 Created 7 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/password_manager/password_manager_metrics_util.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 TEST(PasswordManagerTest, IsDomainNameMonitoredTest) {
10 std::string domain_name;
11
12 domain_name = password_manager_metrics_util::IsDomainNameMonitored(
13 "https://www.linkedin.com");
14 EXPECT_FALSE(domain_name.empty());
15 domain_name = password_manager_metrics_util::IsDomainNameMonitored(
16 "https://www.amazon.com");
17 EXPECT_FALSE(domain_name.empty());
18 domain_name = password_manager_metrics_util::IsDomainNameMonitored(
19 "https://www.facebook.com");
20 EXPECT_TRUE(domain_name.empty());
21 domain_name = password_manager_metrics_util::IsDomainNameMonitored(
22 "http://wikipedia.org");
23 EXPECT_FALSE(domain_name.empty());
24 domain_name = password_manager_metrics_util::IsDomainNameMonitored(
25 "http://thisisnotwikipedia.org");
26 EXPECT_TRUE(domain_name.empty());
27 }
Ilya Sherman 2013/09/10 22:30:54 If you keep the bucketization strategy you've impl
jdomingos 2013/09/11 15:50:30 Hi Ilya, The points (a) and (c), depend on the ra
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698