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

Side by Side Diff: components/signin/core/browser/signin_investigator_unittest.cc

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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
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 }
OLDNEW
« no previous file with comments | « components/signin/core/browser/signin_investigator.h ('k') | components/signin/core/browser/signin_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698