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

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

Issue 829853003: Fix some Windows compile issues. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « mojo/edk/system/core_test_base.h ('k') | mojo/edk/system/multiprocess_message_pipe_unittest.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/edk/system/core_test_base.h" 5 #include "mojo/edk/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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 unsigned CoreTestBase_MockHandleInfo::GetRemoveAwakableCallCount() const { 273 unsigned CoreTestBase_MockHandleInfo::GetRemoveAwakableCallCount() const {
274 base::AutoLock locker(lock_); 274 base::AutoLock locker(lock_);
275 return remove_awakable_call_count_; 275 return remove_awakable_call_count_;
276 } 276 }
277 277
278 unsigned CoreTestBase_MockHandleInfo::GetCancelAllAwakablesCallCount() const { 278 unsigned CoreTestBase_MockHandleInfo::GetCancelAllAwakablesCallCount() const {
279 base::AutoLock locker(lock_); 279 base::AutoLock locker(lock_);
280 return cancel_all_awakables_call_count_; 280 return cancel_all_awakables_call_count_;
281 } 281 }
282 282
283 unsigned CoreTestBase_MockHandleInfo::GetAddedAwakableSize() const { 283 size_t CoreTestBase_MockHandleInfo::GetAddedAwakableSize() const {
284 base::AutoLock locker(lock_); 284 base::AutoLock locker(lock_);
285 return added_awakables_.size(); 285 return added_awakables_.size();
286 } 286 }
287 287
288 Awakable* CoreTestBase_MockHandleInfo::GetAddedAwakableAt(unsigned i) const { 288 Awakable* CoreTestBase_MockHandleInfo::GetAddedAwakableAt(unsigned i) const {
289 base::AutoLock locker(lock_); 289 base::AutoLock locker(lock_);
290 return added_awakables_[i]; 290 return added_awakables_[i];
291 } 291 }
292 292
293 void CoreTestBase_MockHandleInfo::IncrementCtorCallCount() { 293 void CoreTestBase_MockHandleInfo::IncrementCtorCallCount() {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 } 371 }
372 372
373 void CoreTestBase_MockHandleInfo::AwakableWasAdded(Awakable* awakable) { 373 void CoreTestBase_MockHandleInfo::AwakableWasAdded(Awakable* awakable) {
374 base::AutoLock locker(lock_); 374 base::AutoLock locker(lock_);
375 added_awakables_.push_back(awakable); 375 added_awakables_.push_back(awakable);
376 } 376 }
377 377
378 } // namespace test 378 } // namespace test
379 } // namespace system 379 } // namespace system
380 } // namespace mojo 380 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/core_test_base.h ('k') | mojo/edk/system/multiprocess_message_pipe_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698