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

Unified Diff: chrome_frame/test/urlmon_moniker_integration_test.cc

Issue 1361003: When mshtml rejects content we should recognize (even though it is not applic... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | chrome_frame/urlmon_bind_status_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/urlmon_moniker_integration_test.cc
===================================================================
--- chrome_frame/test/urlmon_moniker_integration_test.cc (revision 42723)
+++ chrome_frame/test/urlmon_moniker_integration_test.cc (working copy)
@@ -246,17 +246,30 @@
EXPECT_FALSE(test.nav_manager().HasRequestData());
}
+// Responds with the Chrome mime type.
+class ResponseWithContentType : public test_server::SimpleResponse {
+ public:
+ ResponseWithContentType(const char* request_path,
+ const std::string& contents)
+ : test_server::SimpleResponse(request_path, contents) {
+ }
+ virtual bool GetContentType(std::string* content_type) const {
+ *content_type = WideToASCII(kChromeMimeType);
+ return true;
+ }
+};
+
// Downloads a document asynchronously and then verifies that the downloaded
// contents were cached and the cache contents are correct.
// TODO(tommi): Fix and re-enable.
// http://code.google.com/p/chromium/issues/detail?id=39415
-TEST_F(UrlmonMonikerTest, DISABLED_BindToStorageSwitchContent) {
+TEST_F(UrlmonMonikerTest, BindToStorageSwitchContent) {
const wchar_t test_url[] = L"http://localhost:43210/";
UrlmonMonikerTestManager test(test_url);
UrlmonMonikerTestCallback callback(&test);
test_server::SimpleWebServer server(43210);
- test_server::SimpleResponse default_response("/", kTestContent);
+ ResponseWithContentType default_response("/", kTestContent);
server.AddResponse(&default_response);
callback.SetCallbackExpectations(
@@ -296,7 +309,7 @@
UrlmonMonikerTestCallback callback(&test);
test_server::SimpleWebServer server(43210);
- test_server::SimpleResponse default_response("/", kTestContent);
+ ResponseWithContentType default_response("/", kTestContent);
server.AddResponse(&default_response);
// First set of expectations. Download the contents
« no previous file with comments | « no previous file | chrome_frame/urlmon_bind_status_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698