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

Unified Diff: net/url_request/url_request_unittest.cc

Issue 6369008: Fix the newly added OverrideUserAgent net test so that it works in ChromeFram... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.cc
===================================================================
--- net/url_request/url_request_unittest.cc (revision 72150)
+++ net/url_request/url_request_unittest.cc (working copy)
@@ -23,6 +23,7 @@
#include "base/process_util.h"
#include "base/string_number_conversions.h"
#include "base/string_piece.h"
+#include "base/string_util.h"
#include "base/stringprintf.h"
#include "base/utf_string_conversions.h"
#include "net/base/cookie_monster.h"
@@ -2669,5 +2670,8 @@
req.SetExtraRequestHeaders(headers);
req.Start();
MessageLoop::current()->Run();
- EXPECT_EQ(std::string("Lynx (textmode)"), d.data_received());
+ // If the net tests are being run with ChromeFrame then we need to allow for
+ // the 'chromeframe' suffix which is added to the user agent in outgoing HTTP
+ // requests.
+ EXPECT_TRUE(StartsWithASCII(d.data_received(), "Lynx (textmode)", true));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698