proxygen
DelayedDestructionBaseTest.cpp File Reference
#include <folly/io/async/DelayedDestructionBase.h>
#include <functional>
#include <folly/portability/GTest.h>

Go to the source code of this file.

Classes

class  DestructionOnCallback
 
struct  DelayedDestructionBaseTest
 

Functions

 TEST_F (DelayedDestructionBaseTest, basic)
 

Function Documentation

TEST_F ( DelayedDestructionBaseTest  ,
basic   
)

Definition at line 67 of file DelayedDestructionBaseTest.cpp.

References EXPECT_EQ, EXPECT_NE, int32_t, and DestructionOnCallback::onComplete().

67  {
69  EXPECT_NE(d, nullptr);
70  int32_t state;
71  d->onComplete(3, state);
72  EXPECT_EQ(state, 10); // 10 = 6 + 3 + 1
73 }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
void onComplete(int n, int &state)
#define EXPECT_NE(val1, val2)
Definition: gtest.h:1926
state
Definition: http_parser.c:272