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

Side by Side Diff: components/password_manager/content/browser/credential_manager_dispatcher_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/content/browser/credential_manager_dispatc her.h" 5 #include "components/password_manager/content/browser/credential_manager_dispatc her.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/prefs/pref_registry_simple.h"
16 #include "base/prefs/testing_pref_service.h"
17 #include "base/run_loop.h" 15 #include "base/run_loop.h"
18 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
19 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
20 #include "base/thread_task_runner_handle.h" 18 #include "base/thread_task_runner_handle.h"
21 #include "components/password_manager/content/common/credential_manager_messages .h" 19 #include "components/password_manager/content/common/credential_manager_messages .h"
22 #include "components/password_manager/core/browser/credential_manager_password_f orm_manager.h" 20 #include "components/password_manager/core/browser/credential_manager_password_f orm_manager.h"
23 #include "components/password_manager/core/browser/mock_affiliated_match_helper. h" 21 #include "components/password_manager/core/browser/mock_affiliated_match_helper. h"
24 #include "components/password_manager/core/browser/password_manager.h" 22 #include "components/password_manager/core/browser/password_manager.h"
25 #include "components/password_manager/core/browser/stub_password_manager_client. h" 23 #include "components/password_manager/core/browser/stub_password_manager_client. h"
26 #include "components/password_manager/core/browser/stub_password_manager_driver. h" 24 #include "components/password_manager/core/browser/stub_password_manager_driver. h"
27 #include "components/password_manager/core/browser/test_password_store.h" 25 #include "components/password_manager/core/browser/test_password_store.h"
28 #include "components/password_manager/core/common/credential_manager_types.h" 26 #include "components/password_manager/core/common/credential_manager_types.h"
29 #include "components/password_manager/core/common/password_manager_pref_names.h" 27 #include "components/password_manager/core/common/password_manager_pref_names.h"
28 #include "components/prefs/pref_registry_simple.h"
29 #include "components/prefs/testing_pref_service.h"
30 #include "content/public/browser/web_contents.h" 30 #include "content/public/browser/web_contents.h"
31 #include "content/public/test/mock_render_process_host.h" 31 #include "content/public/test/mock_render_process_host.h"
32 #include "content/public/test/test_renderer_host.h" 32 #include "content/public/test/test_renderer_host.h"
33 #include "testing/gmock/include/gmock/gmock.h" 33 #include "testing/gmock/include/gmock/gmock.h"
34 #include "testing/gtest/include/gtest/gtest.h" 34 #include "testing/gtest/include/gtest/gtest.h"
35 35
36 using content::BrowserContext; 36 using content::BrowserContext;
37 using content::WebContents; 37 using content::WebContents;
38 38
39 using testing::_; 39 using testing::_;
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 TEST_F(CredentialManagerDispatcherTest, GetSynthesizedFormForOrigin) { 898 TEST_F(CredentialManagerDispatcherTest, GetSynthesizedFormForOrigin) {
899 autofill::PasswordForm synthesized = 899 autofill::PasswordForm synthesized =
900 dispatcher_->GetSynthesizedFormForOrigin(); 900 dispatcher_->GetSynthesizedFormForOrigin();
901 EXPECT_EQ(kTestWebOrigin, synthesized.origin.spec()); 901 EXPECT_EQ(kTestWebOrigin, synthesized.origin.spec());
902 EXPECT_EQ(kTestWebOrigin, synthesized.signon_realm); 902 EXPECT_EQ(kTestWebOrigin, synthesized.signon_realm);
903 EXPECT_EQ(autofill::PasswordForm::SCHEME_HTML, synthesized.scheme); 903 EXPECT_EQ(autofill::PasswordForm::SCHEME_HTML, synthesized.scheme);
904 EXPECT_TRUE(synthesized.ssl_valid); 904 EXPECT_TRUE(synthesized.ssl_valid);
905 } 905 }
906 906
907 } // namespace password_manager 907 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698