Index: chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc |
diff --git a/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc b/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc |
index 9dbf2e8b8c3899469059234eb9b4a5d0b1d579da..7d69b1eb7dbd3e49f7e56f40721883b43592eff1 100644 |
--- a/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc |
+++ b/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc |
@@ -366,7 +366,7 @@ class DownloadExtensionTest : public ExtensionApiTest { |
" \"previous\": \"in_progress\"," |
" \"current\": \"interrupted\"}}]", |
item->GetId(), |
- content::InterruptReasonDebugString( |
+ content::DownloadInterruptReasonToString( |
expected_error).c_str())); |
} |
@@ -1679,13 +1679,13 @@ IN_PROC_BROWSER_TEST_F(DownloadExtensionTest, |
<< kInvalidURLs[index]; |
} |
- EXPECT_STREQ("net::ERR_ACCESS_DENIED", RunFunctionAndReturnError( |
+ EXPECT_STREQ("NETWORK_INVALID_REQUEST", RunFunctionAndReturnError( |
new DownloadsDownloadFunction(), |
"[{\"url\": \"javascript:document.write(\\\"hello\\\");\"}]").c_str()); |
- EXPECT_STREQ("net::ERR_ACCESS_DENIED", RunFunctionAndReturnError( |
+ EXPECT_STREQ("NETWORK_INVALID_REQUEST", RunFunctionAndReturnError( |
new DownloadsDownloadFunction(), |
"[{\"url\": \"javascript:return false;\"}]").c_str()); |
- EXPECT_STREQ("net::ERR_NOT_IMPLEMENTED", RunFunctionAndReturnError( |
+ EXPECT_STREQ("NETWORK_FAILED", RunFunctionAndReturnError( |
new DownloadsDownloadFunction(), |
"[{\"url\": \"ftp://example.com/example.txt\"}]").c_str()); |
} |