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

Side by Side Diff: base/scoped_comptr_unittest.cc

Issue 17622: Removing unnecessary include that broke the dependency tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/scoped_comptr.h" 5 #include "base/scoped_comptr.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "chrome/common/win_util.h"
8 7
9 #if defined(OS_WIN) 8 #if defined(OS_WIN)
10 #include <shlobj.h> 9 #include <shlobj.h>
11 10
12 TEST(ScopedComPtrTest, ScopedComPtr) { 11 TEST(ScopedComPtrTest, ScopedComPtr) {
13 EXPECT_TRUE(memcmp(&scoped_comptr<IUnknown>::iid(), &IID_IUnknown, 12 EXPECT_TRUE(memcmp(&scoped_comptr<IUnknown>::iid(), &IID_IUnknown,
14 sizeof(IID)) == 0); 13 sizeof(IID)) == 0);
15 14
16 EXPECT_TRUE(SUCCEEDED(::CoInitialize(NULL))); 15 EXPECT_TRUE(SUCCEEDED(::CoInitialize(NULL)));
17 16
(...skipping 24 matching lines...) Expand all
42 EXPECT_TRUE(unk != NULL); 41 EXPECT_TRUE(unk != NULL);
43 unk.Release(); 42 unk.Release();
44 EXPECT_TRUE(unk == NULL); 43 EXPECT_TRUE(unk == NULL);
45 EXPECT_TRUE(unk.IsSameObject(copy1)); // both are NULL 44 EXPECT_TRUE(unk.IsSameObject(copy1)); // both are NULL
46 } 45 }
47 46
48 ::CoUninitialize(); 47 ::CoUninitialize();
49 } 48 }
50 49
51 #endif // defined(OS_WIN) 50 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698