Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(891)

Unified Diff: base/build_time_unittest.cc

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/build_time.cc ('k') | base/callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/build_time_unittest.cc
diff --git a/base/build_time_unittest.cc b/base/build_time_unittest.cc
deleted file mode 100644
index aac64a7dc7c1f63d3b664b809245680faeef43d8..0000000000000000000000000000000000000000
--- a/base/build_time_unittest.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/build_time.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-TEST(BuildTime, DateLooksValid) {
-#if !defined(DONT_EMBED_BUILD_METADATA)
- char build_date[] = __DATE__;
-#else
- char build_date[] = "Sep 02 2008";
-#endif
-
- EXPECT_EQ(11u, strlen(build_date));
- EXPECT_EQ(' ', build_date[3]);
- EXPECT_EQ(' ', build_date[6]);
-}
-
-TEST(BuildTime, TimeLooksValid) {
-#if defined(DONT_EMBED_BUILD_METADATA)
- char build_time[] = "08:00:00";
-#else
- char build_time[] = __TIME__;
-#endif
-
- EXPECT_EQ(8u, strlen(build_time));
- EXPECT_EQ(':', build_time[2]);
- EXPECT_EQ(':', build_time[5]);
-}
-
-TEST(BuildTime, DoesntCrash) {
- // Since __DATE__ isn't updated unless one does a clobber build, we can't
- // really test the value returned by it, except to check that it doesn't
- // crash.
- base::GetBuildTime();
-}
« no previous file with comments | « base/build_time.cc ('k') | base/callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698