|
proxygen
|
#include <wangle/acceptor/SocketPeeker.h>#include <thread>#include <gmock/gmock.h>#include <gtest/gtest.h>#include <folly/io/async/test/MockAsyncSocket.h>Go to the source code of this file.
Classes | |
| class | MockSocketPeekerCallback |
| class | SocketPeekerTest |
Functions | |
| MATCHER_P2 (BufMatches, buf, len,"") | |
| MATCHER_P2 (IOBufMatches, buf, len,"") | |
| TEST_F (SocketPeekerTest, TestPeekSuccess) | |
| TEST_F (SocketPeekerTest, TestEOFDuringPeek) | |
| TEST_F (SocketPeekerTest, TestNotEnoughDataError) | |
| TEST_F (SocketPeekerTest, TestMultiplePeeks) | |
| TEST_F (SocketPeekerTest, TestDestoryWhilePeeking) | |
| TEST_F (SocketPeekerTest, TestNoPeekSuccess) | |
| MATCHER_P2 | ( | BufMatches | , |
| buf | , | ||
| len | , | ||
| "" | |||
| ) |
Definition at line 59 of file SocketPeekerTest.cpp.
| MATCHER_P2 | ( | IOBufMatches | , |
| buf | , | ||
| len | , | ||
| "" | |||
| ) |
Definition at line 68 of file SocketPeekerTest.cpp.
References folly::IOBuf::copyBuffer().
| TEST_F | ( | SocketPeekerTest | , |
| TestPeekSuccess | |||
| ) |
Definition at line 72 of file SocketPeekerTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, and uint8_t.
| TEST_F | ( | SocketPeekerTest | , |
| TestEOFDuringPeek | |||
| ) |
Definition at line 91 of file SocketPeekerTest.cpp.
References testing::_, and EXPECT_CALL.
| TEST_F | ( | SocketPeekerTest | , |
| TestNotEnoughDataError | |||
| ) |
Definition at line 101 of file SocketPeekerTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, and uint8_t.
| TEST_F | ( | SocketPeekerTest | , |
| TestMultiplePeeks | |||
| ) |
Definition at line 118 of file SocketPeekerTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, and uint8_t.
| TEST_F | ( | SocketPeekerTest | , |
| TestDestoryWhilePeeking | |||
| ) |
Definition at line 140 of file SocketPeekerTest.cpp.
References testing::_, and EXPECT_CALL.
| TEST_F | ( | SocketPeekerTest | , |
| TestNoPeekSuccess | |||
| ) |
Definition at line 147 of file SocketPeekerTest.cpp.
References EXPECT_CALL.