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

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: 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 commits.
jochen (gone - plz use gerrit) 2012/05/24 14:36:03 what about " and blocks until the navigation is co
gavinp 2012/05/24 18:12:26 Done.
75 void LoadHTML(const char* html); 75 void LoadHTML(const char* html);
76 76
77 // Navigates the main frame back or forward in session history and commits. 77 // 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 78 // The caller must capture a WebHistoryItem for the target page. This is
79 // available from the WebFrame. 79 // available from the WebFrame.
80 void GoBack(const WebKit::WebHistoryItem& item); 80 void GoBack(const WebKit::WebHistoryItem& item);
81 void GoForward(const WebKit::WebHistoryItem& item); 81 void GoForward(const WebKit::WebHistoryItem& item);
82 82
83 // Sends IPC messages that emulates a key-press event. 83 // Sends IPC messages that emulates a key-press event.
84 int SendKeyEvent(MockKeyboard::Layout layout, 84 int SendKeyEvent(MockKeyboard::Layout layout,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 scoped_ptr<content::MainFunctionParams> params_; 142 scoped_ptr<content::MainFunctionParams> params_;
143 scoped_ptr<CommandLine> command_line_; 143 scoped_ptr<CommandLine> command_line_;
144 144
145 private: 145 private:
146 void GoToOffset(int offset, const WebKit::WebHistoryItem& history_item); 146 void GoToOffset(int offset, const WebKit::WebHistoryItem& history_item);
147 }; 147 };
148 148
149 } // namespace content 149 } // namespace content
150 150
151 #endif // CONTENT_TEST_RENDER_VIEW_TEST_H_ 151 #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