diff options
-rw-r--r-- | chrome_frame/test/http_negotiate_unittest.cc | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/chrome_frame/test/http_negotiate_unittest.cc b/chrome_frame/test/http_negotiate_unittest.cc index 080de83..a16a457 100644 --- a/chrome_frame/test/http_negotiate_unittest.cc +++ b/chrome_frame/test/http_negotiate_unittest.cc @@ -67,27 +67,24 @@ TEST_F(HttpNegotiateTest, BeginningTransaction) { EXPECT_NE(std::wstring::npos, cf_ua.find(cf_tag)); - // TODO(tommi): Fix the two test cases that are currently - // commented out. - struct TestCase { const std::wstring original_headers_; const std::wstring delegate_additional_; const std::wstring expected_additional_; HRESULT delegate_return_value_; } test_cases[] = { - //{ L"Accept: */*\r\n\r\n", - // L"", - // cf_ua + L"\r\n\r\n", - // S_OK }, + { L"Accept: */*\r\n\r\n", + L"", + cf_ua + L"\r\n\r\n", + S_OK }, { L"Accept: */*\r\n\r\n", L"", L"", E_OUTOFMEMORY }, - //{ L"", - // L"Accept: */*\r\n\r\n", - // L"Accept: */*\r\n" + cf_ua + L"\r\n\r\n", - // S_OK }, + { L"", + L"Accept: */*\r\n\r\n", + L"Accept: */*\r\n" + cf_ua + L"\r\n\r\n", + S_OK }, { L"User-Agent: Bingo/1.0\r\n\r\n", L"", L"User-Agent: Bingo/1.0 " + cf_tag + L"\r\n\r\n", @@ -114,8 +111,7 @@ TEST_F(HttpNegotiateTest, BeginningTransaction) { if (additional) { // Check against the expected additional headers. - EXPECT_EQ(test.expected_additional_, std::wstring(additional)) - << " case: " << i; + EXPECT_EQ(test.expected_additional_, std::wstring(additional)); ::CoTaskMemFree(additional); } } |