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

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

Issue 7537033: Move more files from chrome/test to chrome/test/base, part #5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/common/autofill_messages.h" 5 #include "chrome/common/autofill_messages.h"
6 #include "chrome/test/render_view_test.h" 6 #include "chrome/test/base/render_view_test.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h"
12 #include "webkit/glue/form_data.h" 12 #include "webkit/glue/form_data.h"
13 #include "webkit/glue/web_io_operators.h" 13 #include "webkit/glue/web_io_operators.h"
14 14
15 using webkit_glue::FormData; 15 using webkit_glue::FormData;
16 using WebKit::WebFrame; 16 using WebKit::WebFrame;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 EXPECT_FALSE(form.autoComplete()); 112 EXPECT_FALSE(form.autoComplete());
113 113
114 // Submit the form. 114 // Submit the form.
115 ExecuteJavaScript("document.getElementById('myForm').submit();"); 115 ExecuteJavaScript("document.getElementById('myForm').submit();");
116 ProcessPendingMessages(); 116 ProcessPendingMessages();
117 117
118 // No FormSubmitted message should have been sent. 118 // No FormSubmitted message should have been sent.
119 EXPECT_FALSE(render_thread_.sink().GetFirstMessageMatching( 119 EXPECT_FALSE(render_thread_.sink().GetFirstMessageMatching(
120 AutofillHostMsg_FormSubmitted::ID)); 120 AutofillHostMsg_FormSubmitted::ID));
121 } 121 }
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/autofill_browsertest.cc ('k') | chrome/renderer/autofill/form_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698