diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-12 23:24:17 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-12 23:24:17 +0000 |
commit | 76c4725b4165d28e9f147a1d746622aceca482f6 (patch) | |
tree | ac9e9adbe9e6b447f3851d01953fc57e3585dada /mojo/system/core_test_base.h | |
parent | b9c63179499d968be5b9f969cad3d3ac364a90ed (diff) | |
download | chromium_src-76c4725b4165d28e9f147a1d746622aceca482f6.zip chromium_src-76c4725b4165d28e9f147a1d746622aceca482f6.tar.gz chromium_src-76c4725b4165d28e9f147a1d746622aceca482f6.tar.bz2 |
Mojo: data pipe boilerplate testing (and hooking up).
I implemented the stupid boilerplate tests ... which then promptly
failed, pointing out that I had forgotten to hook up my boilerplate.
Oops.
R=sky@chromium.org
Review URL: https://codereview.chromium.org/99173008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/system/core_test_base.h')
-rw-r--r-- | mojo/system/core_test_base.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mojo/system/core_test_base.h b/mojo/system/core_test_base.h index 114e62e..58b2045 100644 --- a/mojo/system/core_test_base.h +++ b/mojo/system/core_test_base.h @@ -52,6 +52,12 @@ class CoreTestBase_MockHandleInfo { unsigned GetCloseCallCount() const; unsigned GetWriteMessageCallCount() const; unsigned GetReadMessageCallCount() const; + unsigned GetWriteDataCallCount() const; + unsigned GetBeginWriteDataCallCount() const; + unsigned GetEndWriteDataCallCount() const; + unsigned GetReadDataCallCount() const; + unsigned GetBeginReadDataCallCount() const; + unsigned GetEndReadDataCallCount() const; unsigned GetAddWaiterCallCount() const; unsigned GetRemoveWaiterCallCount() const; unsigned GetCancelAllWaitersCallCount() const; @@ -62,6 +68,12 @@ class CoreTestBase_MockHandleInfo { void IncrementCloseCallCount(); void IncrementWriteMessageCallCount(); void IncrementReadMessageCallCount(); + void IncrementWriteDataCallCount(); + void IncrementBeginWriteDataCallCount(); + void IncrementEndWriteDataCallCount(); + void IncrementReadDataCallCount(); + void IncrementBeginReadDataCallCount(); + void IncrementEndReadDataCallCount(); void IncrementAddWaiterCallCount(); void IncrementRemoveWaiterCallCount(); void IncrementCancelAllWaitersCallCount(); @@ -73,6 +85,12 @@ class CoreTestBase_MockHandleInfo { unsigned close_call_count_; unsigned write_message_call_count_; unsigned read_message_call_count_; + unsigned write_data_call_count_; + unsigned begin_write_data_call_count_; + unsigned end_write_data_call_count_; + unsigned read_data_call_count_; + unsigned begin_read_data_call_count_; + unsigned end_read_data_call_count_; unsigned add_waiter_call_count_; unsigned remove_waiter_call_count_; unsigned cancel_all_waiters_call_count_; |