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

Unified Diff: unit_test/version_test.cc

Issue 1612123002: Remove svn version build and unittest (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@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 | « libyuv_test.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unit_test/version_test.cc
diff --git a/unit_test/version_test.cc b/unit_test/version_test.cc
deleted file mode 100644
index 667d984e9ce5d437e3c700605f9c87ebd0a90ebb..0000000000000000000000000000000000000000
--- a/unit_test/version_test.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2012 The LibYuv Project Authors. All rights reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#include <stdlib.h>
-#include <string.h>
-
-#include "libyuv/basic_types.h"
-#include "libyuv/version.h"
-#include "../unit_test/unit_test.h"
-
-namespace libyuv {
-
-// Tests SVN version against include/libyuv/version.h
-// SVN version is bumped by documentation changes as well as code.
-// Although the versions should match, once checked in, a tolerance is allowed.
-TEST_F(LibYUVBaseTest, DISABLED_TestVersion) {
- EXPECT_GE(LIBYUV_VERSION, 169); // 169 is first version to support version.
- printf("LIBYUV_VERSION %d\n", LIBYUV_VERSION);
-#ifdef LIBYUV_SVNREVISION
- const char *ver = strchr(LIBYUV_SVNREVISION, ':');
- if (ver) {
- ++ver;
- } else {
- ver = LIBYUV_SVNREVISION;
- }
- int svn_revision = atoi(ver); // NOLINT
- printf("LIBYUV_SVNREVISION %d\n", svn_revision);
- EXPECT_NEAR(LIBYUV_VERSION, svn_revision, 20); // Allow version to be close.
- if (LIBYUV_VERSION != svn_revision) {
- printf("WARNING - Versions do not match.\n");
- }
-#else
- printf("WARNING - SVN Version unavailable. Test not run.\n");
-#endif
-}
-
-} // namespace libyuv
« no previous file with comments | « libyuv_test.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698