This source file includes following definitions.
- TEST
- TEST
- TEST
#include "base/build_time.h"
#include "testing/gtest/include/gtest/gtest.h"
TEST(BuildTime, DateLooksValid) {
char build_date[] = __DATE__;
EXPECT_EQ(11u, strlen(build_date));
EXPECT_EQ(' ', build_date[3]);
EXPECT_EQ(' ', build_date[6]);
}
TEST(BuildTime, TimeLooksValid) {
char build_time[] = __TIME__;
EXPECT_EQ(8u, strlen(build_time));
EXPECT_EQ(':', build_time[2]);
EXPECT_EQ(':', build_time[5]);
}
TEST(BuildTime, DoesntCrash) {
base::GetBuildTime();
}