From 97ddfb2c07de5f3945f0b2f8a98f6f40d70e66af Mon Sep 17 00:00:00 2001 From: "sgk@google.com" Date: Fri, 24 Apr 2009 19:49:26 +0000 Subject: Eliminate a dependency on _com_issue_error() (via the use of _bstr_t) by removing a no-longer-necessary std::ostream operator<< overload. Review URL: http://codereview.chromium.org/92134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14453 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/ui/npapi_uitest.cc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'chrome/test/ui') diff --git a/chrome/test/ui/npapi_uitest.cc b/chrome/test/ui/npapi_uitest.cc index 3a8905a..d720af9 100644 --- a/chrome/test/ui/npapi_uitest.cc +++ b/chrome/test/ui/npapi_uitest.cc @@ -28,16 +28,6 @@ const char kTestCompleteSuccess[] = "OK"; const int kLongWaitTimeout = 30 * 1000; const int kShortWaitTimeout = 5 * 1000; -std::ostream& operator<<(std::ostream& out, const CComBSTR &str) -{ - // I love strings. I really do. That's why I make sure - // to need 4 different types of strings to stream one out. - TCHAR szFinal[1024]; - _bstr_t bstrIntermediate(str); - _stprintf_s(szFinal, _T("%s"), (LPCTSTR)bstrIntermediate); - return out << szFinal; -} - // Test passing arguments to a plugin. TEST_F(NPAPITester, Arguments) { std::wstring test_case = L"arguments.html"; -- cgit v1.1