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

Unified Diff: chrome/browser/session_history_uitest.cc

Issue 1547003: [GTTF] Miscellanous UI tests cleanups: (Closed)
Patch Set: updated Created 10 years, 9 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/browser/repost_form_warning_uitest.cc ('k') | chrome/browser/sessions/session_restore_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/session_history_uitest.cc
diff --git a/chrome/browser/session_history_uitest.cc b/chrome/browser/session_history_uitest.cc
index c293a9d1ce299fa0066297d35ed7c2678a99a373..830f9be46a178d4588996a4b84a9c63c83d46094 100644
--- a/chrome/browser/session_history_uitest.cc
+++ b/chrome/browser/session_history_uitest.cc
@@ -14,8 +14,6 @@
#include "net/base/net_util.h"
#include "net/url_request/url_request_unittest.h"
-using std::wstring;
-
namespace {
const wchar_t kDocRoot[] = L"chrome/test/data";
@@ -32,9 +30,7 @@ class SessionHistoryTest : public UITest {
window_ = automation()->GetBrowserWindow(0);
ASSERT_TRUE(window_.get());
- int active_tab_index = -1;
- ASSERT_TRUE(window_->GetActiveTabIndex(&active_tab_index));
- tab_ = window_->GetTab(active_tab_index);
+ tab_ = window_->GetActiveTab();
ASSERT_TRUE(tab_.get());
}
@@ -67,8 +63,8 @@ class SessionHistoryTest : public UITest {
ASSERT_TRUE(tab_->NavigateToURL(url));
}
- wstring GetTabTitle() {
- wstring title;
+ std::wstring GetTabTitle() {
+ std::wstring title;
EXPECT_TRUE(tab_->GetTabTitle(&title));
return title;
}
« no previous file with comments | « chrome/browser/repost_form_warning_uitest.cc ('k') | chrome/browser/sessions/session_restore_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698