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

Unified Diff: chrome/browser/sessions/session_service_test_helper.cc

Issue 10170016: Add info about user agent overrides to WebContents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Forgot to initialize bool in constructor; win_rel caught it 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sessions/session_service_test_helper.cc
diff --git a/chrome/browser/sessions/session_service_test_helper.cc b/chrome/browser/sessions/session_service_test_helper.cc
index 4bafec1ce13c2aca3c9bb31d43e6d2b3943cce9a..2953e028c00ac852b58f290f8d5a19af6da6b9f8 100644
--- a/chrome/browser/sessions/session_service_test_helper.cc
+++ b/chrome/browser/sessions/session_service_test_helper.cc
@@ -43,6 +43,13 @@ void SessionServiceTestHelper::SetTabExtensionAppID(
service()->SetTabExtensionAppID(window_id, tab_id, extension_app_id);
}
+void SessionServiceTestHelper::SetTabUserAgentOverride(
+ const SessionID& window_id,
+ const SessionID& tab_id,
+ const std::string& user_agent_override) {
+ service()->SetTabUserAgentOverride(window_id, tab_id, user_agent_override);
+}
+
// Be sure and null out service to force closing the file.
void SessionServiceTestHelper::ReadWindows(
std::vector<SessionWindow*>* windows) {
@@ -84,6 +91,8 @@ void SessionServiceTestHelper::AssertNavigationEquals(
EXPECT_EQ(expected.transition(), actual.transition());
EXPECT_EQ(expected.type_mask(), actual.type_mask());
EXPECT_TRUE(expected.original_request_url() == actual.original_request_url());
+ EXPECT_EQ(expected.is_overriding_user_agent(),
+ actual.is_overriding_user_agent());
}
void SessionServiceTestHelper::AssertSingleWindowWithSingleTab(
« no previous file with comments | « chrome/browser/sessions/session_service_test_helper.h ('k') | chrome/browser/sessions/session_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698