| OLD | NEW |
| 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 #ifndef MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ | 5 #ifndef MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ |
| 6 #define MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ | 6 #define MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 unsigned GetWriteDataCallCount() const; | 56 unsigned GetWriteDataCallCount() const; |
| 57 unsigned GetBeginWriteDataCallCount() const; | 57 unsigned GetBeginWriteDataCallCount() const; |
| 58 unsigned GetEndWriteDataCallCount() const; | 58 unsigned GetEndWriteDataCallCount() const; |
| 59 unsigned GetReadDataCallCount() const; | 59 unsigned GetReadDataCallCount() const; |
| 60 unsigned GetBeginReadDataCallCount() const; | 60 unsigned GetBeginReadDataCallCount() const; |
| 61 unsigned GetEndReadDataCallCount() const; | 61 unsigned GetEndReadDataCallCount() const; |
| 62 unsigned GetAddAwakableCallCount() const; | 62 unsigned GetAddAwakableCallCount() const; |
| 63 unsigned GetRemoveAwakableCallCount() const; | 63 unsigned GetRemoveAwakableCallCount() const; |
| 64 unsigned GetCancelAllAwakablesCallCount() const; | 64 unsigned GetCancelAllAwakablesCallCount() const; |
| 65 | 65 |
| 66 unsigned GetAddedAwakableSize() const; | 66 size_t GetAddedAwakableSize() const; |
| 67 Awakable* GetAddedAwakableAt(unsigned i) const; | 67 Awakable* GetAddedAwakableAt(unsigned i) const; |
| 68 | 68 |
| 69 // For use by |MockDispatcher|: | 69 // For use by |MockDispatcher|: |
| 70 void IncrementCtorCallCount(); | 70 void IncrementCtorCallCount(); |
| 71 void IncrementDtorCallCount(); | 71 void IncrementDtorCallCount(); |
| 72 void IncrementCloseCallCount(); | 72 void IncrementCloseCallCount(); |
| 73 void IncrementWriteMessageCallCount(); | 73 void IncrementWriteMessageCallCount(); |
| 74 void IncrementReadMessageCallCount(); | 74 void IncrementReadMessageCallCount(); |
| 75 void IncrementWriteDataCallCount(); | 75 void IncrementWriteDataCallCount(); |
| 76 void IncrementBeginWriteDataCallCount(); | 76 void IncrementBeginWriteDataCallCount(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 107 std::vector<Awakable*> added_awakables_; | 107 std::vector<Awakable*> added_awakables_; |
| 108 | 108 |
| 109 DISALLOW_COPY_AND_ASSIGN(CoreTestBase_MockHandleInfo); | 109 DISALLOW_COPY_AND_ASSIGN(CoreTestBase_MockHandleInfo); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 } // namespace test | 112 } // namespace test |
| 113 } // namespace system | 113 } // namespace system |
| 114 } // namespace mojo | 114 } // namespace mojo |
| 115 | 115 |
| 116 #endif // MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ | 116 #endif // MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ |
| OLD | NEW |