From 224e723f497c53daa28657b8bfb98d45b8fc1d78 Mon Sep 17 00:00:00 2001 From: "amit@chromium.org" Date: Fri, 16 Apr 2010 02:54:05 +0000 Subject: Fix expectations for MonikerPatchTest unit tests The contract of the cache stream is changed to return S_FALSE if the data is completely read and this was the last data notification. Adjusted unit test expectations accordingly BUG=none TEST=Tests from MonikerPatchTest TBR=ananta Review URL: http://codereview.chromium.org/1523027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44747 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/test/urlmon_moniker_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome_frame') diff --git a/chrome_frame/test/urlmon_moniker_unittest.cc b/chrome_frame/test/urlmon_moniker_unittest.cc index ba1b132..7881490 100644 --- a/chrome_frame/test/urlmon_moniker_unittest.cc +++ b/chrome_frame/test/urlmon_moniker_unittest.cc @@ -190,7 +190,7 @@ TEST_F(MonikerPatchTest, SniffDataPlayback1) { EXPECT_EQ(small_html_meta_tag, read_buffer1.get()); EXPECT_EQ(data_size, read_size1); - EXPECT_EQ(E_PENDING, ret2); + EXPECT_EQ(S_FALSE, ret2); EXPECT_STREQ("", read_buffer2); EXPECT_EQ(sizeof(read_buffer2), read_size2); } @@ -243,7 +243,7 @@ TEST_F(MonikerPatchTest, SniffDataPlayback2) { data_read.append(read_buffer2.get(), read_size2); EXPECT_EQ(small_html_meta_tag, data_read); - EXPECT_EQ(E_PENDING, ret3); + EXPECT_EQ(S_FALSE, ret3); EXPECT_STREQ("", read_buffer3); EXPECT_EQ(sizeof(read_buffer3), read_size3); } -- cgit v1.1