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

Side by Side Diff: mojo/system/core_test_base.cc

Issue 610083002: Mojo: Convert some scoped_ptr<...>(new ...) to make_scoped_ptr(new ...) in mojo/{embedder,system}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed a few Created 6 years, 2 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
« no previous file with comments | « mojo/embedder/test_embedder.cc ('k') | mojo/system/raw_channel_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "mojo/system/core_test_base.h" 5 #include "mojo/system/core_test_base.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 // CoreTestBase ---------------------------------------------------------------- 169 // CoreTestBase ----------------------------------------------------------------
170 170
171 CoreTestBase::CoreTestBase() { 171 CoreTestBase::CoreTestBase() {
172 } 172 }
173 173
174 CoreTestBase::~CoreTestBase() { 174 CoreTestBase::~CoreTestBase() {
175 } 175 }
176 176
177 void CoreTestBase::SetUp() { 177 void CoreTestBase::SetUp() {
178 core_ = new Core(scoped_ptr<embedder::PlatformSupport>( 178 core_ = new Core(make_scoped_ptr(new embedder::SimplePlatformSupport()));
179 new embedder::SimplePlatformSupport()));
180 } 179 }
181 180
182 void CoreTestBase::TearDown() { 181 void CoreTestBase::TearDown() {
183 delete core_; 182 delete core_;
184 core_ = nullptr; 183 core_ = nullptr;
185 } 184 }
186 185
187 MojoHandle CoreTestBase::CreateMockHandle(CoreTestBase::MockHandleInfo* info) { 186 MojoHandle CoreTestBase::CreateMockHandle(CoreTestBase::MockHandleInfo* info) {
188 CHECK(core_); 187 CHECK(core_);
189 scoped_refptr<MockDispatcher> dispatcher(new MockDispatcher(info)); 188 scoped_refptr<MockDispatcher> dispatcher(new MockDispatcher(info));
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } 347 }
349 348
350 void CoreTestBase_MockHandleInfo::IncrementCancelAllWaitersCallCount() { 349 void CoreTestBase_MockHandleInfo::IncrementCancelAllWaitersCallCount() {
351 base::AutoLock locker(lock_); 350 base::AutoLock locker(lock_);
352 cancel_all_waiters_call_count_++; 351 cancel_all_waiters_call_count_++;
353 } 352 }
354 353
355 } // namespace test 354 } // namespace test
356 } // namespace system 355 } // namespace system
357 } // namespace mojo 356 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/embedder/test_embedder.cc ('k') | mojo/system/raw_channel_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698