File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ namespace {
32
32
class QuickTest : public testing ::Test {
33
33
protected:
34
34
virtual void SetUp () {
35
- start_time_ = time (NULL );
35
+ start_time_ = time (nullptr );
36
36
}
37
37
virtual void TearDown () {
38
- const time_t end_time = time (NULL );
38
+ const time_t end_time = time (nullptr );
39
39
EXPECT_TRUE (end_time - start_time_ <=25 ) << " The test took too long - " << ::testing::PrintToString (end_time - start_time_);
40
40
}
41
41
time_t start_time_;
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ class UnicharcompressTest : public ::testing::Test {
135
135
RecodedCharID extended = code;
136
136
int length = code.length ();
137
137
const GenericVector<int >* final_codes = compressed_.GetFinalCodes (code);
138
- if (final_codes != NULL ) {
138
+ if (final_codes != nullptr ) {
139
139
for (int i = 0 ; i < final_codes->size (); ++i) {
140
140
int ending = (*final_codes)[i];
141
141
EXPECT_GT (times_seen[ending](length), 0 );
@@ -145,7 +145,7 @@ class UnicharcompressTest : public ::testing::Test {
145
145
}
146
146
}
147
147
const GenericVector<int >* next_codes = compressed_.GetNextCodes (code);
148
- if (next_codes != NULL ) {
148
+ if (next_codes != nullptr ) {
149
149
for (int i = 0 ; i < next_codes->size (); ++i) {
150
150
int extension = (*next_codes)[i];
151
151
EXPECT_GT (times_seen[extension](length), 0 );
You can’t perform that action at this time.
0 commit comments