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

Side by Side Diff: components/password_manager/core/browser/password_generation_manager_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/password_manager/core/browser/password_generation_manager.h " 5 #include "components/password_manager/core/browser/password_generation_manager.h "
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/prefs/pref_registry_simple.h"
12 #include "base/prefs/pref_service.h"
13 #include "base/prefs/testing_pref_service.h"
14 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
15 #include "components/autofill/core/browser/autofill_field.h" 12 #include "components/autofill/core/browser/autofill_field.h"
16 #include "components/autofill/core/browser/autofill_metrics.h" 13 #include "components/autofill/core/browser/autofill_metrics.h"
17 #include "components/autofill/core/browser/form_structure.h" 14 #include "components/autofill/core/browser/form_structure.h"
18 #include "components/autofill/core/common/form_data.h" 15 #include "components/autofill/core/common/form_data.h"
19 #include "components/autofill/core/common/form_field_data.h" 16 #include "components/autofill/core/common/form_field_data.h"
20 #include "components/autofill/core/common/password_form_generation_data.h" 17 #include "components/autofill/core/common/password_form_generation_data.h"
21 #include "components/password_manager/core/browser/password_autofill_manager.h" 18 #include "components/password_manager/core/browser/password_autofill_manager.h"
22 #include "components/password_manager/core/browser/password_manager.h" 19 #include "components/password_manager/core/browser/password_manager.h"
23 #include "components/password_manager/core/browser/stub_password_manager_client. h" 20 #include "components/password_manager/core/browser/stub_password_manager_client. h"
24 #include "components/password_manager/core/browser/stub_password_manager_driver. h" 21 #include "components/password_manager/core/browser/stub_password_manager_driver. h"
25 #include "components/password_manager/core/browser/test_password_store.h" 22 #include "components/password_manager/core/browser/test_password_store.h"
26 #include "components/password_manager/core/common/password_manager_pref_names.h" 23 #include "components/password_manager/core/common/password_manager_pref_names.h"
24 #include "components/prefs/pref_registry_simple.h"
25 #include "components/prefs/pref_service.h"
26 #include "components/prefs/testing_pref_service.h"
27 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 #include "url/gurl.h" 29 #include "url/gurl.h"
30 30
31 using base::ASCIIToUTF16; 31 using base::ASCIIToUTF16;
32 using testing::_; 32 using testing::_;
33 33
34 namespace password_manager { 34 namespace password_manager {
35 35
36 namespace { 36 namespace {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 EXPECT_CALL(*client_, IsOffTheRecord()).WillRepeatedly(testing::Return(true)); 251 EXPECT_CALL(*client_, IsOffTheRecord()).WillRepeatedly(testing::Return(true));
252 PrefService* prefs = client_->GetPrefs(); 252 PrefService* prefs = client_->GetPrefs();
253 prefs->SetBoolean(prefs::kPasswordManagerSavingEnabled, true); 253 prefs->SetBoolean(prefs::kPasswordManagerSavingEnabled, true);
254 EXPECT_CALL(*client_, GetPasswordSyncState()) 254 EXPECT_CALL(*client_, GetPasswordSyncState())
255 .WillRepeatedly(testing::Return(SYNCING_NORMAL_ENCRYPTION)); 255 .WillRepeatedly(testing::Return(SYNCING_NORMAL_ENCRYPTION));
256 256
257 EXPECT_FALSE(IsGenerationEnabled()); 257 EXPECT_FALSE(IsGenerationEnabled());
258 } 258 }
259 259
260 } // namespace password_manager 260 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698