summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/translate_helper_browsertest.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-11 00:05:16 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-11 00:05:16 +0000
commit068970d4e8a15c8915c3e3b1df16c71428a20ba5 (patch)
treecdc5e6313d188f3044a603ffc826c0b81da7e1bd /chrome/renderer/translate_helper_browsertest.cc
parent771c173105e8f68812fb386e278773adee6319ce (diff)
downloadchromium_src-068970d4e8a15c8915c3e3b1df16c71428a20ba5.zip
chromium_src-068970d4e8a15c8915c3e3b1df16c71428a20ba5.tar.gz
chromium_src-068970d4e8a15c8915c3e3b1df16c71428a20ba5.tar.bz2
Don't expose RenderViewImpl to tests which use RenderViewTest through its header. Instead add a few methods to RenderViewTest that Chrome tests need.
BUG=98716 Review URL: http://codereview.chromium.org/8222014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104826 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/translate_helper_browsertest.cc')
-rw-r--r--chrome/renderer/translate_helper_browsertest.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/renderer/translate_helper_browsertest.cc b/chrome/renderer/translate_helper_browsertest.cc
index 20434a9..56ead08 100644
--- a/chrome/renderer/translate_helper_browsertest.cc
+++ b/chrome/renderer/translate_helper_browsertest.cc
@@ -6,6 +6,7 @@
#include "chrome/common/render_messages.h"
#include "chrome/renderer/translate_helper.h"
#include "chrome/test/base/render_view_test.h"
+#include "content/public/renderer/render_view.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -301,7 +302,7 @@ TEST_F(TranslateHelperTest, MultipleDifferentTranslations) {
TEST_F(RenderViewTest, TranslatablePage) {
// Suppress the normal delay that occurs when the page is loaded before which
// the renderer sends the page contents to the browser.
- view_->set_send_content_state_immediately(true);
+ SendContentStateImmediately();
LoadHTML("<html><body>A random page with random content.</body></html>");
ProcessPendingMessages();
@@ -340,7 +341,7 @@ TEST_F(RenderViewTest, TranslatablePage) {
TEST_F(RenderViewTest, LanguageMetaTag) {
// Suppress the normal delay that occurs when the page is loaded before which
// the renderer sends the page contents to the browser.
- view_->set_send_content_state_immediately(true);
+ SendContentStateImmediately();
LoadHTML("<html><head><meta http-equiv=\"content-language\" content=\"es\">"
"</head><body>A random page with random content.</body></html>");