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

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

Issue 16879006: In components/autofill, move common/ to core/common/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflict Created 7 years, 6 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 | Annotate | Revision Log
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 "base/strings/string_util.h" 5 #include "base/strings/string_util.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/test/base/chrome_render_view_test.h" 7 #include "chrome/test/base/chrome_render_view_test.h"
8 #include "components/autofill/common/autofill_messages.h"
9 #include "components/autofill/common/form_data.h"
10 #include "components/autofill/common/form_field_data.h"
11 #include "components/autofill/content/renderer/autofill_agent.h" 8 #include "components/autofill/content/renderer/autofill_agent.h"
12 #include "components/autofill/content/renderer/password_autofill_agent.h" 9 #include "components/autofill/content/renderer/password_autofill_agent.h"
10 #include "components/autofill/core/common/autofill_messages.h"
11 #include "components/autofill/core/common/form_data.h"
12 #include "components/autofill/core/common/form_field_data.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/WebKit/public/platform/WebString.h"
15 #include "third_party/WebKit/public/platform/WebVector.h"
14 #include "third_party/WebKit/public/web/WebDocument.h" 16 #include "third_party/WebKit/public/web/WebDocument.h"
15 #include "third_party/WebKit/public/web/WebElement.h" 17 #include "third_party/WebKit/public/web/WebElement.h"
16 #include "third_party/WebKit/public/web/WebFormElement.h" 18 #include "third_party/WebKit/public/web/WebFormElement.h"
17 #include "third_party/WebKit/public/web/WebInputElement.h" 19 #include "third_party/WebKit/public/web/WebInputElement.h"
18 #include "third_party/WebKit/public/web/WebNode.h" 20 #include "third_party/WebKit/public/web/WebNode.h"
19 #include "third_party/WebKit/public/web/WebView.h" 21 #include "third_party/WebKit/public/web/WebView.h"
20 #include "third_party/WebKit/public/platform/WebString.h"
21 #include "third_party/WebKit/public/platform/WebVector.h"
22 #include "ui/base/keycodes/keyboard_codes.h" 22 #include "ui/base/keycodes/keyboard_codes.h"
23 23
24 using content::PasswordForm; 24 using content::PasswordForm;
25 using WebKit::WebDocument; 25 using WebKit::WebDocument;
26 using WebKit::WebElement; 26 using WebKit::WebElement;
27 using WebKit::WebFrame; 27 using WebKit::WebFrame;
28 using WebKit::WebInputElement; 28 using WebKit::WebInputElement;
29 using WebKit::WebString; 29 using WebKit::WebString;
30 using WebKit::WebView; 30 using WebKit::WebView;
31 31
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 // didSelectAutofillSuggestion on the renderer. 496 // didSelectAutofillSuggestion on the renderer.
497 autofill_agent_->didSelectAutofillSuggestion(username_element_, 497 autofill_agent_->didSelectAutofillSuggestion(username_element_,
498 ASCIIToUTF16(kAliceUsername), 498 ASCIIToUTF16(kAliceUsername),
499 WebKit::WebString(), 499 WebKit::WebString(),
500 0); 500 0);
501 // Autocomplete should not have kicked in. 501 // Autocomplete should not have kicked in.
502 CheckTextFieldsState(std::string(), false, std::string(), false); 502 CheckTextFieldsState(std::string(), false, std::string(), false);
503 } 503 }
504 504
505 } // namespace autofill 505 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698