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

Unified Diff: chrome_frame/test/urlmon_moniker_integration_test.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/reliability/page_load_test.cc ('k') | chrome_frame/test/urlmon_moniker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/urlmon_moniker_integration_test.cc
diff --git a/chrome_frame/test/urlmon_moniker_integration_test.cc b/chrome_frame/test/urlmon_moniker_integration_test.cc
index 4bf977f6ddcaf9dcf755d34e72a7127c32997998..99c0357f8d9184ab8a8ce586efa6fdfd88eda35d 100644
--- a/chrome_frame/test/urlmon_moniker_integration_test.cc
+++ b/chrome_frame/test/urlmon_moniker_integration_test.cc
@@ -5,13 +5,13 @@
#include <atlbase.h>
#include <atlcom.h>
-#include "base/scoped_comptr_win.h"
-#include "base/win/scoped_handle.h"
#include "base/threading/thread.h"
+#include "base/win/scoped_comptr.h"
+#include "base/win/scoped_handle.h"
#include "chrome_frame/bho.h"
//#include "chrome_frame/urlmon_moniker.h"
-#include "chrome_frame/test/test_server.h"
#include "chrome_frame/test/chrome_frame_test_utils.h"
+#include "chrome_frame/test/test_server.h"
#include "chrome_frame/test/urlmon_moniker_tests.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
@@ -175,14 +175,14 @@ class UrlmonMonikerTestCallback {
HRESULT CreateUrlMonikerAndBindToStorage(const wchar_t* url,
IBindCtx** bind_ctx) {
- ScopedComPtr<IMoniker> moniker;
+ base::win::ScopedComPtr<IMoniker> moniker;
HRESULT hr = CreateURLMoniker(NULL, url, moniker.Receive());
EXPECT_TRUE(moniker != NULL);
if (moniker) {
- ScopedComPtr<IBindCtx> context;
+ base::win::ScopedComPtr<IBindCtx> context;
::CreateAsyncBindCtx(0, callback(), NULL, context.Receive());
DCHECK(context);
- ScopedComPtr<IStream> stream;
+ base::win::ScopedComPtr<IStream> stream;
hr = moniker->BindToStorage(context, NULL, IID_IStream,
reinterpret_cast<void**>(stream.Receive()));
if (SUCCEEDED(hr) && bind_ctx)
@@ -215,7 +215,7 @@ TEST_F(UrlmonMonikerTest, BindToStorageSynchronous) {
callback.SetCallbackExpectations(
UrlmonMonikerTestCallback::REQUEST_SYNCHRONOUS, S_OK, false);
- ScopedComPtr<IBindCtx> bind_ctx;
+ base::win::ScopedComPtr<IBindCtx> bind_ctx;
HRESULT hr = callback.CreateUrlMonikerAndBindToStorage(test_url,
bind_ctx.Receive());
// The download should have happened synchronously, so we don't expect
@@ -241,7 +241,7 @@ TEST_F(UrlmonMonikerTest, BindToStorageAsynchronous) {
callback.SetCallbackExpectations(
UrlmonMonikerTestCallback::REQUEST_ASYNCHRONOUS, S_OK, true);
- ScopedComPtr<IBindCtx> bind_ctx;
+ base::win::ScopedComPtr<IBindCtx> bind_ctx;
HRESULT hr = callback.CreateUrlMonikerAndBindToStorage(test_url,
bind_ctx.Receive());
EXPECT_EQ(MK_S_ASYNCHRONOUS, hr);
@@ -292,7 +292,7 @@ TEST_F(UrlmonMonikerTest, BindToStorageSwitchContent) {
if (request_data) {
EXPECT_EQ(request_data->GetCachedContentSize(),
arraysize(kTestContent) - 1);
- ScopedComPtr<IStream> stream;
+ base::win::ScopedComPtr<IStream> stream;
request_data->GetResetCachedContentStream(stream.Receive());
EXPECT_TRUE(stream != NULL);
if (stream) {
« no previous file with comments | « chrome_frame/test/reliability/page_load_test.cc ('k') | chrome_frame/test/urlmon_moniker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698