diff options
| author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-04 22:56:57 +0000 |
|---|---|---|
| committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-04 22:56:57 +0000 |
| commit | 0464e16a54318266b7b7710b2af9484701f93320 (patch) | |
| tree | f74924e938c278551355f13b94bccdc286d8f663 /net/url_request | |
| parent | 887288f0a1ce2bca1d03699c945c273ef22d8975 (diff) | |
| download | chromium_src-0464e16a54318266b7b7710b2af9484701f93320.zip chromium_src-0464e16a54318266b7b7710b2af9484701f93320.tar.gz chromium_src-0464e16a54318266b7b7710b2af9484701f93320.tar.bz2 | |
Fix the expectation in OverrideUserAgent net test to ensure that it passes with
chrome frame net tests. This is to account for the changed UA string in chrome frame.
BUG=none
TEST=Covered by existing chrome frame net test
Review URL: http://codereview.chromium.org/6246121
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73867 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
| -rw-r--r-- | net/url_request/url_request_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc index 93daab0..26185bd 100644 --- a/net/url_request/url_request_unittest.cc +++ b/net/url_request/url_request_unittest.cc @@ -2732,7 +2732,7 @@ TEST_F(URLRequestTestHTTP, OverrideUserAgent) { req.Start(); MessageLoop::current()->Run(); // 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)); + // the 'chromeframe' suffix which is added to the user agent before the + // closing parentheses. + EXPECT_TRUE(StartsWithASCII(d.data_received(), "Lynx (textmode", true)); } |
