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

Unified Diff: chrome/test/accessibility/accessibility_tests.cc

Issue 113722: Make automation proxy objects to ref_counted. That allows to process async no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/common/pref_service_uitest.cc ('k') | chrome/test/automated_ui_tests/automated_ui_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/accessibility/accessibility_tests.cc
===================================================================
--- chrome/test/accessibility/accessibility_tests.cc (revision 17078)
+++ chrome/test/accessibility/accessibility_tests.cc (working copy)
@@ -133,12 +133,12 @@
GetState(acc_obj));
// Now check Back status in different situations.
- scoped_ptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
+ scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
ASSERT_TRUE(window.get());
int tab_count = -1;
// Set URL and check button status.
- scoped_ptr<TabProxy> tab1(window->GetTab(0));
+ scoped_refptr<TabProxy> tab1(window->GetTab(0));
ASSERT_TRUE(tab1.get());
FilePath test_file1(test_data_directory_);
test_file1 = test_file1.AppendASCII("title1.html");
@@ -235,12 +235,12 @@
}
// Now check Back status in different situations.
- scoped_ptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
+ scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
ASSERT_TRUE(window.get());
int tab_count = -1;
// Set URL and check button status.
- scoped_ptr<TabProxy> tab1(window->GetTab(0));
+ scoped_refptr<TabProxy> tab1(window->GetTab(0));
ASSERT_TRUE(tab1.get());
FilePath test_file1(test_data_directory_);
test_file1 = test_file1.AppendASCII("title1.html");
@@ -322,11 +322,11 @@
EXPECT_EQ(STATE_SYSTEM_FOCUSABLE, GetState(acc_obj));
// Now, check Star status in different situations.
- scoped_ptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
+ scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
ASSERT_TRUE(window.get());
// Set URL and check button status.
- scoped_ptr<TabProxy> tab1(window->GetTab(0));
+ scoped_refptr<TabProxy> tab1(window->GetTab(0));
ASSERT_TRUE(tab1.get());
FilePath test_file1(test_data_directory_);
test_file1 = test_file1.AppendASCII("title1.html");
« no previous file with comments | « chrome/common/pref_service_uitest.cc ('k') | chrome/test/automated_ui_tests/automated_ui_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698