proxygen
gtest_prod_test.cc File Reference
#include "gtest/gtest.h"
#include "test/production.h"

Go to the source code of this file.

Typedefs

typedef testing::Test PrivateCodeFixtureTest
 

Functions

 TEST (PrivateCodeTest, CanAccessPrivateMembers)
 
 TEST_F (PrivateCodeFixtureTest, CanAccessPrivateMembers)
 

Typedef Documentation

Definition at line 47 of file gtest_prod_test.cc.

Function Documentation

TEST ( PrivateCodeTest  ,
CanAccessPrivateMembers   
)

Definition at line 39 of file gtest_prod_test.cc.

References a, EXPECT_EQ, PrivateCode::set_x(), and PrivateCode::x_.

39  {
40  PrivateCode a;
41  EXPECT_EQ(0, a.x_);
42 
43  a.set_x(1);
44  EXPECT_EQ(1, a.x_);
45 }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
char a
void set_x(int an_x)
Definition: production.h:51
TEST_F ( PrivateCodeFixtureTest  ,
CanAccessPrivateMembers   
)

Definition at line 51 of file gtest_prod_test.cc.

References a, EXPECT_EQ, PrivateCode::set_x(), and PrivateCode::x_.

51  {
52  PrivateCode a;
53  EXPECT_EQ(0, a.x_);
54 
55  a.set_x(2);
56  EXPECT_EQ(2, a.x_);
57 }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
char a
void set_x(int an_x)
Definition: production.h:51