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

Side by Side Diff: chrome/browser/autofill/autofill_browsertest.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 <string> 5 #include <string>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 17 matching lines...) Expand all
28 #include "chrome/test/base/ui_test_utils.h" 28 #include "chrome/test/base/ui_test_utils.h"
29 #include "content/browser/renderer_host/mock_render_process_host.h" 29 #include "content/browser/renderer_host/mock_render_process_host.h"
30 #include "content/public/browser/navigation_controller.h" 30 #include "content/public/browser/navigation_controller.h"
31 #include "content/public/browser/notification_service.h" 31 #include "content/public/browser/notification_service.h"
32 #include "content/public/browser/render_view_host.h" 32 #include "content/public/browser/render_view_host.h"
33 #include "content/public/browser/web_contents.h" 33 #include "content/public/browser/web_contents.h"
34 #include "content/test/test_url_fetcher_factory.h" 34 #include "content/test/test_url_fetcher_factory.h"
35 #include "testing/gtest/include/gtest/gtest.h" 35 #include "testing/gtest/include/gtest/gtest.h"
36 #include "ui/base/keycodes/keyboard_codes.h" 36 #include "ui/base/keycodes/keyboard_codes.h"
37 37
38 using content::RenderViewHost;
38 using content::WebContents; 39 using content::WebContents;
39 40
40 static const char* kDataURIPrefix = "data:text/html;charset=utf-8,"; 41 static const char* kDataURIPrefix = "data:text/html;charset=utf-8,";
41 static const char* kTestFormString = 42 static const char* kTestFormString =
42 "<form action=\"http://www.example.com/\" method=\"POST\">" 43 "<form action=\"http://www.example.com/\" method=\"POST\">"
43 "<label for=\"firstname\">First name:</label>" 44 "<label for=\"firstname\">First name:</label>"
44 " <input type=\"text\" id=\"firstname\"" 45 " <input type=\"text\" id=\"firstname\""
45 " onFocus=\"domAutomationController.send(true)\"><br>" 46 " onFocus=\"domAutomationController.send(true)\"><br>"
46 "<label for=\"lastname\">Last name:</label>" 47 "<label for=\"lastname\">Last name:</label>"
47 " <input type=\"text\" id=\"lastname\"><br>" 48 " <input type=\"text\" id=\"lastname\"><br>"
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 // Once click the text field, it starts again. 716 // Once click the text field, it starts again.
716 ASSERT_TRUE(ui_test_utils::ExecuteJavaScript( 717 ASSERT_TRUE(ui_test_utils::ExecuteJavaScript(
717 render_view_host(), L"", 718 render_view_host(), L"",
718 L"cr.googleTranslate.onTranslateElementLoad();")); 719 L"cr.googleTranslate.onTranslateElementLoad();"));
719 720
720 // Simulate the render notifying the translation has been done. 721 // Simulate the render notifying the translation has been done.
721 translation_observer.Wait(); 722 translation_observer.Wait();
722 723
723 TryBasicFormFill(); 724 TryBasicFormFill();
724 } 725 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit.cc ('k') | chrome/browser/autofill/autofill_external_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698