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

Side by Side Diff: net/base/build_time_unittest.cc

Issue 8467031: net: make pinning enforcement timeout after ten weeks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/base/build_time.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 TEST(BuildTime, DateFormat) {
10 char build_date[] = __DATE__;
11
12 EXPECT_EQ(11u, strlen(build_date));
13 EXPECT_EQ(' ', build_date[3]);
14 EXPECT_EQ(' ', build_date[6]);
15
16 // Since __DATE__ isn't updated unless one does a clobber build, we can't
17 // really test the value returned by it, except to check that it doesn't
18 // crash.
19 net::GetDaysSinceBuild();
20 }
OLDNEW
« net/base/build_time.cc ('K') | « net/base/build_time.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698