#include <P_CacheTest.h>
Inherits RegressionSM.

| Public Member Functions | |
| void | fill_buffer () | 
| int | check_buffer () | 
| int | check_result (int event) | 
| int | complete (int event) | 
| int | event_handler (int event, void *edata) | 
| void | make_request () | 
| virtual void | make_request_internal ()=0 | 
| virtual int | open_read_callout () | 
| virtual int | open_write_callout () | 
| void | cancel_timeout () | 
| void | run () | 
| virtual RegressionSM * | clone ()=0 | 
| CacheTestSM (RegressionTest *t) | |
| CacheTestSM (const CacheTestSM &ao) | |
| ~CacheTestSM () | |
| Data Fields | |
| int | start_memcpy_on_clone | 
| Action * | timeout | 
| Action * | cache_action | 
| ink_hrtime | start_time | 
| CacheVConnection * | cache_vc | 
| VIO * | cvio | 
| MIOBuffer * | buffer | 
| IOBufferReader * | buffer_reader | 
| int64_t | total_size | 
| int64_t | nbytes | 
| CacheKey | key | 
| int | repeat_count | 
| int | expect_event | 
| int | expect_initial_event | 
| int | initial_event | 
| uint64_t | content_salt | 
| CacheTestHeader | header | 
| int | end_memcpy_on_clone | 
Definition at line 69 of file P_CacheTest.h.
| CacheTestSM::CacheTestSM | ( | RegressionTest * | t | ) | 
Definition at line 29 of file CacheTest.cc.
References event_handler(), and SET_HANDLER.
| CacheTestSM::CacheTestSM | ( | const CacheTestSM & | ao | ) | 
Definition at line 271 of file CacheTest.cc.
References end_memcpy_on_clone, event_handler(), memcpy, SET_HANDLER, and start_memcpy_on_clone.
| CacheTestSM::~CacheTestSM | ( | ) | 
Definition at line 48 of file CacheTest.cc.
References buffer, buffer_reader, cache_action, cache_vc, MIOBuffer::dealloc_reader(), free_MIOBuffer(), and ink_assert.
| void CacheTestSM::cancel_timeout | ( | ) |  [inline] | 
Definition at line 107 of file P_CacheTest.h.
References Action::cancel(), and timeout.
Referenced by event_handler().
| int CacheTestSM::check_buffer | ( | ) | 
Definition at line 230 of file CacheTest.cc.
References ats::CryptoHash::b, buffer_reader, IOBufferReader::consume(), content_salt, cvio, key, VIO::ndone, IOBufferReader::read(), and IOBufferReader::read_avail().
Referenced by event_handler().
| int CacheTestSM::check_result | ( | int | event | ) | 
Definition at line 256 of file CacheTest.cc.
References expect_event, expect_initial_event, and initial_event.
Referenced by complete(), and event_handler().
| virtual RegressionSM* CacheTestSM::clone | ( | ) |  [pure virtual] | 
Reimplemented from RegressionSM.
| int CacheTestSM::complete | ( | int | event | ) | 
Definition at line 262 of file CacheTest.cc.
References check_result(), RegressionSM::done(), REGRESSION_TEST_FAILED, and REGRESSION_TEST_PASSED.
Referenced by event_handler().
| int CacheTestSM::event_handler | ( | int | event, | |
| void * | edata | |||
| ) | 
Definition at line 67 of file CacheTest.cc.
References AIO_EVENT_DONE, MIOBuffer::alloc_reader(), buffer, buffer_reader, cache_action, CACHE_EVENT_LOOKUP, CACHE_EVENT_LOOKUP_FAILED, CACHE_EVENT_OPEN_READ, CACHE_EVENT_OPEN_READ_FAILED, CACHE_EVENT_OPEN_WRITE, CACHE_EVENT_OPEN_WRITE_FAILED, CACHE_EVENT_REMOVE, CACHE_EVENT_REMOVE_FAILED, CACHE_EVENT_SCAN, CACHE_EVENT_SCAN_DONE, CACHE_EVENT_SCAN_FAILED, CACHE_EVENT_SCAN_OBJECT, CACHE_EVENT_SCAN_OPERATION_BLOCKED, CACHE_EVENT_SCAN_OPERATION_FAILED, cache_vc, Action::cancel(), cancel_timeout(), check_buffer(), check_result(), complete(), IOBufferReader::consume(), cvio, MIOBuffer::dealloc_reader(), CacheVConnection::do_io_close(), EVENT_IMMEDIATE, EVENT_INTERVAL, eventProcessor, fill_buffer(), free_MIOBuffer(), initial_event, ink_assert, make_request(), nbytes, VIO::ndone, new_empty_MIOBuffer, open_read_callout(), open_write_callout(), IOBufferReader::read_avail(), VIO::reenable(), repeat_count, EventProcessor::schedule_imm(), timeout, VC_EVENT_EOS, VC_EVENT_ERROR, VC_EVENT_READ_COMPLETE, VC_EVENT_READ_READY, VC_EVENT_WRITE_COMPLETE, and VC_EVENT_WRITE_READY.
Referenced by CacheTestSM().
| void CacheTestSM::fill_buffer | ( | ) | 
Definition at line 207 of file CacheTest.cc.
References ats::CryptoHash::b, buffer, buffer_reader, content_salt, cvio, MIOBuffer::fill(), key, VIO::ndone, IOBufferReader::read_avail(), MIOBuffer::write(), and MIOBuffer::write_avail().
Referenced by event_handler().
| void CacheTestSM::make_request | ( | ) |  [inline] | 
Definition at line 99 of file P_CacheTest.h.
References ink_get_hrtime(), make_request_internal(), and start_time.
Referenced by event_handler().
| virtual void CacheTestSM::make_request_internal | ( | ) |  [pure virtual] | 
Referenced by make_request().
| int CacheTestSM::open_read_callout | ( | ) |  [virtual] | 
Definition at line 57 of file CacheTest.cc.
References buffer, cache_vc, cvio, CacheVConnection::do_io_read(), and nbytes.
Referenced by event_handler().
| int CacheTestSM::open_write_callout | ( | ) |  [virtual] | 
Definition at line 62 of file CacheTest.cc.
References buffer_reader, cache_vc, cvio, CacheVConnection::do_io_write(), and nbytes.
Referenced by event_handler().
| void CacheTestSM::run | ( | ) |  [inline, virtual] | 
Reimplemented from RegressionSM.
Definition at line 113 of file P_CacheTest.h.
References eventProcessor, Continuation::mutex, MUTEX_LOCK, EventProcessor::schedule_imm(), this_ethread(), and timeout.
Definition at line 76 of file P_CacheTest.h.
Referenced by event_handler(), fill_buffer(), open_read_callout(), and ~CacheTestSM().
Definition at line 77 of file P_CacheTest.h.
Referenced by check_buffer(), event_handler(), fill_buffer(), open_write_callout(), and ~CacheTestSM().
Definition at line 72 of file P_CacheTest.h.
Referenced by event_handler(), and ~CacheTestSM().
Definition at line 74 of file P_CacheTest.h.
Referenced by event_handler(), open_read_callout(), open_write_callout(), and ~CacheTestSM().
| uint64_t CacheTestSM::content_salt | 
Definition at line 90 of file P_CacheTest.h.
Referenced by check_buffer(), and fill_buffer().
Definition at line 75 of file P_CacheTest.h.
Referenced by check_buffer(), event_handler(), fill_buffer(), open_read_callout(), and open_write_callout().
Definition at line 92 of file P_CacheTest.h.
Referenced by CacheTestSM().
Definition at line 87 of file P_CacheTest.h.
Referenced by check_result().
Definition at line 88 of file P_CacheTest.h.
Referenced by check_result().
Definition at line 91 of file P_CacheTest.h.
Definition at line 89 of file P_CacheTest.h.
Referenced by check_result(), and event_handler().
Definition at line 85 of file P_CacheTest.h.
Referenced by check_buffer(), and fill_buffer().
| int64_t CacheTestSM::nbytes | 
Definition at line 84 of file P_CacheTest.h.
Referenced by event_handler(), open_read_callout(), and open_write_callout().
Definition at line 86 of file P_CacheTest.h.
Referenced by event_handler().
Definition at line 70 of file P_CacheTest.h.
Referenced by CacheTestSM().
Definition at line 73 of file P_CacheTest.h.
Referenced by make_request().
Definition at line 71 of file P_CacheTest.h.
Referenced by cancel_timeout(), event_handler(), and run().
| int64_t CacheTestSM::total_size | 
Definition at line 83 of file P_CacheTest.h.
 1.7.1
 1.7.1