OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/prefs/pref_registry_simple.h" | |
8 #include "base/prefs/testing_pref_service.h" | |
9 #include "base/test/histogram_tester.h" | 7 #include "base/test/histogram_tester.h" |
| 8 #include "components/prefs/pref_registry_simple.h" |
| 9 #include "components/prefs/testing_pref_service.h" |
10 #include "components/signin/core/browser/signin_investigator.h" | 10 #include "components/signin/core/browser/signin_investigator.h" |
11 #include "components/signin/core/browser/signin_metrics.h" | 11 #include "components/signin/core/browser/signin_metrics.h" |
12 #include "components/signin/core/common/signin_pref_names.h" | 12 #include "components/signin/core/common/signin_pref_names.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 using signin_metrics::AccountEquality; | 15 using signin_metrics::AccountEquality; |
16 | 16 |
17 namespace { | 17 namespace { |
18 const char kSameEmail[] = "user1@domain.com"; | 18 const char kSameEmail[] = "user1@domain.com"; |
19 const char kDifferentEmail[] = "user2@domain.com"; | 19 const char kDifferentEmail[] = "user2@domain.com"; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 } | 99 } |
100 | 100 |
101 TEST_F(SigninInvestigatorTest, InvestigateUpgrade) { | 101 TEST_F(SigninInvestigatorTest, InvestigateUpgrade) { |
102 AssertInvestigatedScenario("", "", InvestigatedScenario::UPGRADE_LOW_RISK); | 102 AssertInvestigatedScenario("", "", InvestigatedScenario::UPGRADE_LOW_RISK); |
103 } | 103 } |
104 | 104 |
105 TEST_F(SigninInvestigatorTest, InvestigateDifferentAccount) { | 105 TEST_F(SigninInvestigatorTest, InvestigateDifferentAccount) { |
106 AssertInvestigatedScenario(kDifferentEmail, kDifferentId, | 106 AssertInvestigatedScenario(kDifferentEmail, kDifferentId, |
107 InvestigatedScenario::DIFFERENT_ACCOUNT); | 107 InvestigatedScenario::DIFFERENT_ACCOUNT); |
108 } | 108 } |
OLD | NEW |