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

Side by Side Diff: components/password_manager/core/browser/password_form_manager_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <map> 5 #include <map>
6 6
7 #include "base/macros.h"
7 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
8 #include "base/prefs/pref_registry_simple.h" 9 #include "base/prefs/pref_registry_simple.h"
9 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
10 #include "base/prefs/testing_pref_service.h" 11 #include "base/prefs/testing_pref_service.h"
11 #include "base/run_loop.h" 12 #include "base/run_loop.h"
12 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
13 #include "base/test/histogram_tester.h" 14 #include "base/test/histogram_tester.h"
15 #include "build/build_config.h"
14 #include "components/autofill/core/browser/autofill_manager.h" 16 #include "components/autofill/core/browser/autofill_manager.h"
15 #include "components/autofill/core/browser/test_autofill_client.h" 17 #include "components/autofill/core/browser/test_autofill_client.h"
16 #include "components/autofill/core/browser/test_autofill_driver.h" 18 #include "components/autofill/core/browser/test_autofill_driver.h"
17 #include "components/autofill/core/browser/test_personal_data_manager.h" 19 #include "components/autofill/core/browser/test_personal_data_manager.h"
18 #include "components/autofill/core/common/autofill_pref_names.h" 20 #include "components/autofill/core/common/autofill_pref_names.h"
19 #include "components/autofill/core/common/password_form.h" 21 #include "components/autofill/core/common/password_form.h"
20 #include "components/password_manager/core/browser/credentials_filter.h" 22 #include "components/password_manager/core/browser/credentials_filter.h"
21 #include "components/password_manager/core/browser/mock_password_store.h" 23 #include "components/password_manager/core/browser/mock_password_store.h"
22 #include "components/password_manager/core/browser/password_form_manager.h" 24 #include "components/password_manager/core/browser/password_form_manager.h"
23 #include "components/password_manager/core/browser/password_manager.h" 25 #include "components/password_manager/core/browser/password_manager.h"
(...skipping 2621 matching lines...) Expand 10 before | Expand all | Expand 10 after
2645 EXPECT_EQ(ASCIIToUTF16("new_password"), 2647 EXPECT_EQ(ASCIIToUTF16("new_password"),
2646 form_manager()->pending_credentials().password_value); 2648 form_manager()->pending_credentials().password_value);
2647 EXPECT_EQ(base::string16(), 2649 EXPECT_EQ(base::string16(),
2648 form_manager()->pending_credentials().username_value); 2650 form_manager()->pending_credentials().username_value);
2649 EXPECT_TRUE( 2651 EXPECT_TRUE(
2650 form_manager()->pending_credentials().new_password_element.empty()); 2652 form_manager()->pending_credentials().new_password_element.empty());
2651 EXPECT_TRUE(form_manager()->pending_credentials().new_password_value.empty()); 2653 EXPECT_TRUE(form_manager()->pending_credentials().new_password_value.empty());
2652 } 2654 }
2653 2655
2654 } // namespace password_manager 2656 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698