Commit 56bbdf61 authored by japhet@chromium.org's avatar japhet@chromium.org

Remove multipart_browsertest.cc

Its only case has been disabled for a couple years, and blink has  since removed
the feature it was testing (multipart main reosurces).

BUG=136310

Review URL: https://codereview.chromium.org/316663003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274889 0039d316-1c4b-4281-b951-d872f2087c98
parent d0ab865b
// 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.
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/common/frame_navigate_params.h"
#include "net/test/spawned_test_server/spawned_test_server.h"
class MultipartResponseTest : public InProcessBrowserTest,
public content::WebContentsObserver {
public:
MultipartResponseTest() : did_navigate_any_frame_count_(0),
update_history_count_(0) {}
virtual void DidNavigateAnyFrame(
const content::LoadCommittedDetails& details,
const content::FrameNavigateParams& params) OVERRIDE {
did_navigate_any_frame_count_++;
if (params.should_update_history)
update_history_count_++;
}
int did_navigate_any_frame_count_;
int update_history_count_;
};
// Disabled: http://crbug.com/136310
IN_PROC_BROWSER_TEST_F(MultipartResponseTest, DISABLED_SingleVisit) {
// Make sure that visiting a multipart/x-mixed-replace site only
// creates one entry in the visits table.
ASSERT_TRUE(test_server()->Start());
Observe(browser()->tab_strip_model()->GetActiveWebContents());
ui_test_utils::NavigateToURL(browser(), test_server()->GetURL("multipart"));
EXPECT_EQ(base::ASCIIToUTF16("page 9"),
browser()->tab_strip_model()->GetActiveWebContents()->GetTitle());
EXPECT_EQ(1, update_history_count_);
EXPECT_GT(did_navigate_any_frame_count_, update_history_count_);
}
...@@ -1237,7 +1237,6 @@ ...@@ -1237,7 +1237,6 @@
'browser/geolocation/access_token_store_browsertest.cc', 'browser/geolocation/access_token_store_browsertest.cc',
'browser/geolocation/geolocation_browsertest.cc', 'browser/geolocation/geolocation_browsertest.cc',
'browser/history/history_browsertest.cc', 'browser/history/history_browsertest.cc',
'browser/history/multipart_browsertest.cc',
'browser/history/redirect_browsertest.cc', 'browser/history/redirect_browsertest.cc',
'browser/iframe_browsertest.cc', 'browser/iframe_browsertest.cc',
'browser/importer/firefox_importer_browsertest.cc', 'browser/importer/firefox_importer_browsertest.cc',
......
...@@ -329,7 +329,6 @@ class TestPageHandler(testserver_base.BasePageHandler): ...@@ -329,7 +329,6 @@ class TestPageHandler(testserver_base.BasePageHandler):
self.NoContentHandler, self.NoContentHandler,
self.ServerRedirectHandler, self.ServerRedirectHandler,
self.ClientRedirectHandler, self.ClientRedirectHandler,
self.MultipartHandler,
self.GetSSLSessionCacheHandler, self.GetSSLSessionCacheHandler,
self.SSLManySmallRecords, self.SSLManySmallRecords,
self.GetChannelID, self.GetChannelID,
...@@ -1439,29 +1438,6 @@ class TestPageHandler(testserver_base.BasePageHandler): ...@@ -1439,29 +1438,6 @@ class TestPageHandler(testserver_base.BasePageHandler):
return True return True
def MultipartHandler(self):
"""Send a multipart response (10 text/html pages)."""
test_name = '/multipart'
if not self._ShouldHandleRequest(test_name):
return False
num_frames = 10
bound = '12345'
self.send_response(200)
self.send_header('Content-Type',
'multipart/x-mixed-replace;boundary=' + bound)
self.end_headers()
for i in xrange(num_frames):
self.wfile.write('--' + bound + '\r\n')
self.wfile.write('Content-Type: text/html\r\n\r\n')
self.wfile.write('<title>page ' + str(i) + '</title>')
self.wfile.write('page ' + str(i))
self.wfile.write('--' + bound + '--')
return True
def GetSSLSessionCacheHandler(self): def GetSSLSessionCacheHandler(self):
"""Send a reply containing a log of the session cache operations.""" """Send a reply containing a log of the session cache operations."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment