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

Side by Side Diff: chrome/renderer/autofill/password_generation_agent_browsertest.cc

Issue 2352533003: [Autofill] Migrate ChromePasswordManagerClient<-->PasswordGenerationAgent IPCs to mojo. (Closed)
Patch Set: browser_tests partly Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.h> 5 #include <string.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/test/histogram_tester.h" 12 #include "base/test/histogram_tester.h"
13 #include "chrome/renderer/autofill/fake_content_password_manager_driver.h" 13 #include "chrome/renderer/autofill/fake_content_password_manager_driver.h"
14 #include "chrome/renderer/autofill/password_generation_test_utils.h" 14 #include "chrome/renderer/autofill/password_generation_test_utils.h"
15 #include "chrome/test/base/chrome_render_view_test.h" 15 #include "chrome/test/base/chrome_render_view_test.h"
16 #include "components/autofill/content/common/autofill_messages.h"
17 #include "components/autofill/content/renderer/autofill_agent.h" 16 #include "components/autofill/content/renderer/autofill_agent.h"
18 #include "components/autofill/content/renderer/test_password_generation_agent.h" 17 #include "components/autofill/content/renderer/test_password_generation_agent.h"
19 #include "components/autofill/core/common/form_data.h" 18 #include "components/autofill/core/common/form_data.h"
20 #include "components/autofill/core/common/password_generation_util.h" 19 #include "components/autofill/core/common/password_generation_util.h"
21 #include "content/public/renderer/render_frame.h" 20 #include "content/public/renderer/render_frame.h"
22 #include "content/public/renderer/render_view.h" 21 #include "content/public/renderer/render_view.h"
23 #include "services/shell/public/cpp/interface_provider.h" 22 #include "services/shell/public/cpp/interface_provider.h"
24 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
25 #include "third_party/WebKit/public/platform/WebString.h" 24 #include "third_party/WebKit/public/platform/WebString.h"
26 #include "third_party/WebKit/public/web/WebDocument.h" 25 #include "third_party/WebKit/public/web/WebDocument.h"
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 base::string16()); 700 base::string16());
702 } 701 }
703 702
704 TEST_F(PasswordGenerationAgentTest, FormClassifierDisabled) { 703 TEST_F(PasswordGenerationAgentTest, FormClassifierDisabled) {
705 LoadHTMLWithUserGesture(kSigninFormHTML); 704 LoadHTMLWithUserGesture(kSigninFormHTML);
706 ExpectFormClassifierVoteReceived(false /* vote is not expected */, 705 ExpectFormClassifierVoteReceived(false /* vote is not expected */,
707 base::string16()); 706 base::string16());
708 } 707 }
709 708
710 } // namespace autofill 709 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698