From fe600bf48f49427004f1275a25d9366cddc522d3 Mon Sep 17 00:00:00 2001 From: "grt@chromium.org" Date: Fri, 3 Feb 2012 15:59:53 +0000 Subject: Fix flakiness in Chrome Frame HeaderTest. Responses were being cached by IE, so there was a reasonable probability that two permutations used the same URL. This change adds a no-cache header so the URL doesn't matter. BUG=99235 TEST=none -- covered by chrome_frame_tests.exe Review URL: https://chromiumcodereview.appspot.com/9323031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120336 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/test/header_test.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome_frame') diff --git a/chrome_frame/test/header_test.cc b/chrome_frame/test/header_test.cc index 49c667d..0e61c84 100644 --- a/chrome_frame/test/header_test.cc +++ b/chrome_frame/test/header_test.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -39,7 +39,8 @@ class TestData { std::ostringstream headers; headers << "HTTP/1.1 200 OK\r\n" << "Connection: close\r\n" - << "Content-Type: text/html\r\n"; + << "Content-Type: text/html\r\n" + << "Cache-Control: no-cache\r\n"; if (in_header_) { headers << "X-UA-COMPATIBLE: " << value_ << "\r\n"; } -- cgit v1.1