summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/ie_event_sink.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-16 04:22:51 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-16 04:22:51 +0000
commitb679032aef9317482f87ceaf67ee138aaa67a152 (patch)
tree8ccd1bcf22215a8b62464c11ec01075c34f0fcb9 /chrome_frame/test/ie_event_sink.cc
parent94b7e8d7a56619b6c98f23c2f6f8d4f2f65b48e7 (diff)
downloadchromium_src-b679032aef9317482f87ceaf67ee138aaa67a152.zip
chromium_src-b679032aef9317482f87ceaf67ee138aaa67a152.tar.gz
chromium_src-b679032aef9317482f87ceaf67ee138aaa67a152.tar.bz2
Resurrecting Tommi's attachment download test in response to a FORM post request. This
test was incorrectly deleted during the test reorganization. Added expectations to this test to look for the File download dialog box and close it when we see this. Added an end to end download attachment test with a lot of help from Stoyan about the intricacies of gmock which saves the file and verifies that the content matches that being sent from the server. Bug=36694 Review URL: http://codereview.chromium.org/3833002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/ie_event_sink.cc')
-rw-r--r--chrome_frame/test/ie_event_sink.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome_frame/test/ie_event_sink.cc b/chrome_frame/test/ie_event_sink.cc
index 9848dcc..85bebb88 100644
--- a/chrome_frame/test/ie_event_sink.cc
+++ b/chrome_frame/test/ie_event_sink.cc
@@ -463,10 +463,11 @@ STDMETHODIMP_(void) IEEventSink::OnFileDownload(
VARIANT_BOOL active_doc, VARIANT_BOOL* cancel) {
DLOG(INFO) << __FUNCTION__ << base::StringPrintf(" 0x%08X ad=%i", this,
active_doc);
- if (listener_)
+ if (listener_) {
listener_->OnFileDownload(active_doc, cancel);
- // Always cancel file downloads in tests.
- *cancel = VARIANT_TRUE;
+ } else {
+ *cancel = VARIANT_TRUE;
+ }
}
STDMETHODIMP_(void) IEEventSink::OnNewWindow3(