Go to the source code of this file.
◆ TEST_F() [1/2]
Definition at line 71 of file filestreamtest.cpp.
71 {
72 FILE *fp = fopen(filename_, "rb");
74 char buffer[65536];
76
77 for (size_t i = 0; i < length_; i++) {
81 }
82
85
86 fclose(fp);
87}
File byte stream for input using fread().
#define EXPECT_EQ(val1, val2)
#define ASSERT_TRUE(condition)
◆ TEST_F() [2/2]
Definition at line 89 of file filestreamtest.cpp.
89 {
90 char filename[L_tmpnam];
92
93 char buffer[65536];
95 for (size_t i = 0; i < length_; i++)
96 os.Put(json_[i]);
97 os.Flush();
98 fclose(fp);
99
100
101 fp = fopen(filename, "rb");
103
104 for (size_t i = 0; i < length_; i++)
106
108 fclose(fp);
109
110
111 remove(filename);
112}
Wrapper of C file stream for output using fwrite().
FILE * TempFile(char *filename)