diff options
-rw-r--r-- | chrome_frame/test/test_mock_with_web_server.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome_frame/test/test_mock_with_web_server.cc b/chrome_frame/test/test_mock_with_web_server.cc index bdd5c8d..e2e6a1ef 100644 --- a/chrome_frame/test/test_mock_with_web_server.cc +++ b/chrome_frame/test/test_mock_with_web_server.cc @@ -1309,15 +1309,25 @@ TEST(IEPrivacy, NavigationToRestrictedSite) { EXPECT_CALL(mock, OnFileDownload(_, _)) .Times(testing::AnyNumber()); - testing::InSequence s; + ProtocolPatchMethod patch_method = GetPatchMethod(); + + //testing::InSequence s; const wchar_t* url = L"http://localhost:1337/files/meta_tag.html"; const wchar_t* kDialogClass = L"#32770"; + EXPECT_CALL(mock, OnBeforeNavigate2(_, testing::Field(&VARIANT::bstrVal, testing::StrCaseEq(url)), _, _, _, _, _)) .Times(1) .WillOnce(WatchWindow(&mock, kDialogClass)); + if (patch_method == PATCH_METHOD_INET_PROTOCOL) { + EXPECT_CALL(mock, OnBeforeNavigate2(_, + testing::Field(&VARIANT::bstrVal, + testing::HasSubstr(L"res://")), _, _, _, _, _)) + .Times(1); + } + EXPECT_CALL(mock, OnNavigateComplete2(_, testing::Field(&VARIANT::bstrVal, testing::StrCaseEq(url)))).Times(1); |