Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
gtest_prod_test.cc File Reference
#include "production.h"
#include "gtest/gtest.h"
Include dependency graph for gtest_prod_test.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef testing::Test PrivateCodeFixtureTest
 

Functions

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

Typedef Documentation

◆ PrivateCodeFixtureTest

Definition at line 47 of file gtest_prod_test.cc.

Function Documentation

◆ TEST()

TEST ( PrivateCodeTest ,
CanAccessPrivateMembers  )

Definition at line 39 of file gtest_prod_test.cc.

39 {
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:1954
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181

◆ TEST_F()

TEST_F ( PrivateCodeFixtureTest ,
CanAccessPrivateMembers  )

Definition at line 51 of file gtest_prod_test.cc.

51 {
53 EXPECT_EQ(0, a.x_);
54
55 a.set_x(2);
56 EXPECT_EQ(2, a.x_);
57}