Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8457)

Unified Diff: chrome_frame/test/urlmon_moniker_unittest.cc

Issue 6825055: Include base/win/scoped_comptr.h instead of base/scoped_comptr_win.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert bad indentation, rebase Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/test/urlmon_moniker_integration_test.cc ('k') | chrome_frame/urlmon_bind_status_callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/urlmon_moniker_unittest.cc
diff --git a/chrome_frame/test/urlmon_moniker_unittest.cc b/chrome_frame/test/urlmon_moniker_unittest.cc
index d644be7886d874100793ef624324a09b3fcb5873..f7e0f048fd2f55d0a4db735af7baf4abd3eb8468 100644
--- a/chrome_frame/test/urlmon_moniker_unittest.cc
+++ b/chrome_frame/test/urlmon_moniker_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -7,10 +7,10 @@
#include "base/file_util.h"
#include "base/path_service.h"
-#include "base/scoped_comptr_win.h"
-#include "chrome_frame/urlmon_bind_status_callback.h"
+#include "base/win/scoped_comptr.h"
#include "chrome_frame/test/chrome_frame_test_utils.h"
#include "chrome_frame/test/urlmon_moniker_tests.h"
+#include "chrome_frame/urlmon_bind_status_callback.h"
using chrome_frame_test::ScopedVirtualizeHklmAndHkcu;
using testing::Return;
@@ -38,7 +38,7 @@ class MonikerPatchTest : public testing::Test {
static bool StringToStream(const std::string& data, IStream** ret) {
EXPECT_TRUE(!data.empty());
- ScopedComPtr<IStream> stream;
+ base::win::ScopedComPtr<IStream> stream;
HRESULT hr = CreateStreamOnHGlobal(NULL, TRUE, stream.Receive());
EXPECT_HRESULT_SUCCEEDED(hr);
if (FAILED(hr)) {
@@ -136,7 +136,7 @@ TEST_F(MonikerPatchTest, SniffDataMetaTag) {
ASSERT_TRUE(ReadFileAsString(kSmallHtmlMetaTag, &small_html_meta_tag));
ASSERT_TRUE(ReadFileAsString(kSmallHtmlNoMetaTag, &small_html_no_meta_tag));
- ScopedComPtr<IStream> stream_with_meta, stream_no_meta;
+ base::win::ScopedComPtr<IStream> stream_with_meta, stream_no_meta;
ASSERT_TRUE(StringToStream(small_html_meta_tag, stream_with_meta.Receive()));
ASSERT_TRUE(StringToStream(small_html_no_meta_tag,
stream_no_meta.Receive()));
@@ -159,7 +159,7 @@ TEST_F(MonikerPatchTest, SniffDataMetaTag) {
// case 1: callback reads data in 1 read
TEST_F(MonikerPatchTest, SniffDataPlayback1) {
std::string small_html_meta_tag;
- ScopedComPtr<IStream> stream_with_meta;
+ base::win::ScopedComPtr<IStream> stream_with_meta;
SniffData sniffer;
EXPECT_HRESULT_SUCCEEDED(sniffer.InitializeCache(std::wstring()));
@@ -202,7 +202,7 @@ TEST_F(MonikerPatchTest, SniffDataPlayback1) {
// case 2: callback reads data in 2 reads.
TEST_F(MonikerPatchTest, SniffDataPlayback2) {
std::string small_html_meta_tag;
- ScopedComPtr<IStream> stream_with_meta;
+ base::win::ScopedComPtr<IStream> stream_with_meta;
SniffData sniffer;
EXPECT_HRESULT_SUCCEEDED(sniffer.InitializeCache(std::wstring()));
« no previous file with comments | « chrome_frame/test/urlmon_moniker_integration_test.cc ('k') | chrome_frame/urlmon_bind_status_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698