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

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

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 "base/macros.h"
5 #include "base/prefs/pref_service.h" 6 #include "base/prefs/pref_service.h"
6 #include "chrome/browser/password_manager/auto_signin_first_run_infobar_delegate .h" 7 #include "chrome/browser/password_manager/auto_signin_first_run_infobar_delegate .h"
7 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 9 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
9 #include "components/password_manager/core/common/password_manager_pref_names.h" 10 #include "components/password_manager/core/common/password_manager_pref_names.h"
10 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
11 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 namespace { 15 namespace {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 TEST_F(AutoSigninFirstRunInfoBarDelegateTest, 71 TEST_F(AutoSigninFirstRunInfoBarDelegateTest,
71 CheckResetOfPrefAfterFirstRunMessageWasShownOnAccept) { 72 CheckResetOfPrefAfterFirstRunMessageWasShownOnAccept) {
72 prefs()->SetBoolean( 73 prefs()->SetBoolean(
73 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown, false); 74 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown, false);
74 scoped_ptr<ConfirmInfoBarDelegate> infobar(CreateDelegate()); 75 scoped_ptr<ConfirmInfoBarDelegate> infobar(CreateDelegate());
75 EXPECT_TRUE(infobar->Accept()); 76 EXPECT_TRUE(infobar->Accept());
76 infobar.reset(); 77 infobar.reset();
77 EXPECT_TRUE(prefs()->GetBoolean( 78 EXPECT_TRUE(prefs()->GetBoolean(
78 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown)); 79 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown));
79 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698