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

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

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/test/histogram_tester.h" 13 #include "base/test/histogram_tester.h"
14 #include "chrome/renderer/autofill/fake_content_password_manager_driver.h" 14 #include "chrome/renderer/autofill/fake_content_password_manager_driver.h"
15 #include "chrome/renderer/autofill/fake_password_manager_client.h" 15 #include "chrome/renderer/autofill/fake_password_manager_client.h"
16 #include "chrome/renderer/autofill/password_generation_test_utils.h" 16 #include "chrome/renderer/autofill/password_generation_test_utils.h"
17 #include "chrome/test/base/chrome_render_view_test.h" 17 #include "chrome/test/base/chrome_render_view_test.h"
18 #include "components/autofill/content/renderer/autofill_agent.h" 18 #include "components/autofill/content/renderer/autofill_agent.h"
19 #include "components/autofill/content/renderer/test_password_generation_agent.h" 19 #include "components/autofill/content/renderer/test_password_generation_agent.h"
20 #include "components/autofill/core/common/form_data.h" 20 #include "components/autofill/core/common/form_data.h"
21 #include "components/autofill/core/common/password_generation_util.h" 21 #include "components/autofill/core/common/password_generation_util.h"
22 #include "content/public/common/associated_interface_provider.h" 22 #include "content/public/common/associated_interface_provider.h"
23 #include "content/public/renderer/render_frame.h" 23 #include "content/public/renderer/render_frame.h"
24 #include "content/public/renderer/render_view.h" 24 #include "content/public/renderer/render_view.h"
25 #include "services/shell/public/cpp/interface_provider.h" 25 #include "services/service_manager/public/cpp/interface_provider.h"
26 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
27 #include "third_party/WebKit/public/platform/WebString.h" 27 #include "third_party/WebKit/public/platform/WebString.h"
28 #include "third_party/WebKit/public/web/WebDocument.h" 28 #include "third_party/WebKit/public/web/WebDocument.h"
29 #include "third_party/WebKit/public/web/WebLocalFrame.h" 29 #include "third_party/WebKit/public/web/WebLocalFrame.h"
30 #include "third_party/WebKit/public/web/WebWidget.h" 30 #include "third_party/WebKit/public/web/WebWidget.h"
31 #include "ui/events/keycodes/keyboard_codes.h" 31 #include "ui/events/keycodes/keyboard_codes.h"
32 32
33 using blink::WebDocument; 33 using blink::WebDocument;
34 using blink::WebElement; 34 using blink::WebElement;
35 using blink::WebInputElement; 35 using blink::WebInputElement;
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 base::string16()); 717 base::string16());
718 } 718 }
719 719
720 TEST_F(PasswordGenerationAgentTest, FormClassifierDisabled) { 720 TEST_F(PasswordGenerationAgentTest, FormClassifierDisabled) {
721 LoadHTMLWithUserGesture(kSigninFormHTML); 721 LoadHTMLWithUserGesture(kSigninFormHTML);
722 ExpectFormClassifierVoteReceived(false /* vote is not expected */, 722 ExpectFormClassifierVoteReceived(false /* vote is not expected */,
723 base::string16()); 723 base::string16());
724 } 724 }
725 725
726 } // namespace autofill 726 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/password_autofill_agent_browsertest.cc ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698