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

Unified Diff: chrome/browser/extensions/api/automation/automation_apitest.cc

Issue 273423004: Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/automation/automation_apitest.cc
diff --git a/chrome/browser/extensions/api/automation/automation_apitest.cc b/chrome/browser/extensions/api/automation/automation_apitest.cc
index 5e38d0b3ce81aef7db2f38dacc97428e1bfbef0c..01d0f6e56fad27227db84bb935a55fffdba6f0db 100644
--- a/chrome/browser/extensions/api/automation/automation_apitest.cc
+++ b/chrome/browser/extensions/api/automation/automation_apitest.cc
@@ -71,12 +71,8 @@ IN_PROC_BROWSER_TEST_F(AutomationApiTest, TestRendererAccessibilityEnabled) {
ASSERT_EQ(1, browser()->tab_strip_model()->count());
content::WebContents* const tab =
browser()->tab_strip_model()->GetWebContentsAt(0);
- content::RenderWidgetHost* rwh =
- tab->GetRenderWidgetHostView()->GetRenderWidgetHost();
- ASSERT_NE((content::RenderWidgetHost*)NULL, rwh)
- << "Couldn't get RenderWidgetHost";
- ASSERT_FALSE(rwh->IsFullAccessibilityModeForTesting());
- ASSERT_FALSE(rwh->IsTreeOnlyAccessibilityModeForTesting());
+ ASSERT_FALSE(tab->IsFullAccessibilityModeForTesting());
+ ASSERT_FALSE(tab->IsTreeOnlyAccessibilityModeForTesting());
base::FilePath extension_path =
test_data_dir_.AppendASCII("automation/basic");
@@ -84,11 +80,8 @@ IN_PROC_BROWSER_TEST_F(AutomationApiTest, TestRendererAccessibilityEnabled) {
LoadExtension(extension_path);
ASSERT_TRUE(got_tree.WaitUntilSatisfied());
- rwh = tab->GetRenderWidgetHostView()->GetRenderWidgetHost();
- ASSERT_NE((content::RenderWidgetHost*)NULL, rwh)
- << "Couldn't get RenderWidgetHost";
- ASSERT_FALSE(rwh->IsFullAccessibilityModeForTesting());
- ASSERT_TRUE(rwh->IsTreeOnlyAccessibilityModeForTesting());
+ ASSERT_FALSE(tab->IsFullAccessibilityModeForTesting());
+ ASSERT_TRUE(tab->IsTreeOnlyAccessibilityModeForTesting());
}
// TODO(dtseng): See crbug.com/360297.

Powered by Google App Engine
This is Rietveld 408576698