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

Unified Diff: chrome/installer/util/compat_checks_unittest.cc

Issue 24015: Test for Symantec SEP... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | « chrome/installer/util/compat_checks.cc ('k') | chrome/installer/util/installer_unittests.vcproj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/compat_checks_unittest.cc
===================================================================
--- chrome/installer/util/compat_checks_unittest.cc (revision 0)
+++ chrome/installer/util/compat_checks_unittest.cc (revision 0)
@@ -0,0 +1,23 @@
+// Copyright (c) 2006-2009 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 "chrome/installer/setup/compat_checks.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+// Test that we detect the incompatible SEP version. The very last digit
+// of the version does not matter but must be present.
+TEST(CompatTests, SymantecSEP) {
+ EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3001.0"));
+ EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000.1"));
+ EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"11.0.2999.1"));
+ EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"10.1.5000.1"));
+ EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"9.5.1000.0"));
+
+ EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L""));
+ EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000"));
+ EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000.1.2"));
+ EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.b.3000.1"));
+
+}
+
« no previous file with comments | « chrome/installer/util/compat_checks.cc ('k') | chrome/installer/util/installer_unittests.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698