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

Side by Side Diff: content/test/render_view_test.h

Issue 10408089: Update RenderViewTest::LoadHTML documentation, and remove spurious commits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remediate to review Created 8 years, 7 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
« no previous file with comments | « chrome/renderer/translate_helper_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_TEST_RENDER_VIEW_TEST_H_ 5 #ifndef CONTENT_TEST_RENDER_VIEW_TEST_H_
6 #define CONTENT_TEST_RENDER_VIEW_TEST_H_ 6 #define CONTENT_TEST_RENDER_VIEW_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Executes the given JavaScript in the context of the main frame. The input 64 // Executes the given JavaScript in the context of the main frame. The input
65 // is a NULL-terminated UTF-8 string. 65 // is a NULL-terminated UTF-8 string.
66 void ExecuteJavaScript(const char* js); 66 void ExecuteJavaScript(const char* js);
67 67
68 // Executes the given JavaScript and sets the int value it evaluates to in 68 // Executes the given JavaScript and sets the int value it evaluates to in
69 // |result|. 69 // |result|.
70 // Returns true if the JavaScript was evaluated correctly to an int value, 70 // Returns true if the JavaScript was evaluated correctly to an int value,
71 // false otherwise. 71 // false otherwise.
72 bool ExecuteJavaScriptAndReturnIntValue(const string16& script, int* result); 72 bool ExecuteJavaScriptAndReturnIntValue(const string16& script, int* result);
73 73
74 // Loads the given HTML into the main frame as a data: URL. 74 // Loads the given HTML into the main frame as a data: URL and blocks until
75 // the navigation is committed.
75 void LoadHTML(const char* html); 76 void LoadHTML(const char* html);
76 77
77 // Navigates the main frame back or forward in session history and commits. 78 // Navigates the main frame back or forward in session history and commits.
78 // The caller must capture a WebHistoryItem for the target page. This is 79 // The caller must capture a WebHistoryItem for the target page. This is
79 // available from the WebFrame. 80 // available from the WebFrame.
80 void GoBack(const WebKit::WebHistoryItem& item); 81 void GoBack(const WebKit::WebHistoryItem& item);
81 void GoForward(const WebKit::WebHistoryItem& item); 82 void GoForward(const WebKit::WebHistoryItem& item);
82 83
83 // Sends IPC messages that emulates a key-press event. 84 // Sends IPC messages that emulates a key-press event.
84 int SendKeyEvent(MockKeyboard::Layout layout, 85 int SendKeyEvent(MockKeyboard::Layout layout,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 scoped_ptr<content::MainFunctionParams> params_; 143 scoped_ptr<content::MainFunctionParams> params_;
143 scoped_ptr<CommandLine> command_line_; 144 scoped_ptr<CommandLine> command_line_;
144 145
145 private: 146 private:
146 void GoToOffset(int offset, const WebKit::WebHistoryItem& history_item); 147 void GoToOffset(int offset, const WebKit::WebHistoryItem& history_item);
147 }; 148 };
148 149
149 } // namespace content 150 } // namespace content
150 151
151 #endif // CONTENT_TEST_RENDER_VIEW_TEST_H_ 152 #endif // CONTENT_TEST_RENDER_VIEW_TEST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/translate_helper_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698