summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-13 02:17:33 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-13 02:17:33 +0000
commit9d49ca7ef0d127abb8cf675c5146f96ce40ad625 (patch)
tree573fc530f1583f054043d2de6cce6db50e469ca2 /chrome
parent1b31477393c50ca192abf0789900c9eda0bfea7d (diff)
downloadchromium_src-9d49ca7ef0d127abb8cf675c5146f96ce40ad625.zip
chromium_src-9d49ca7ef0d127abb8cf675c5146f96ce40ad625.tar.gz
chromium_src-9d49ca7ef0d127abb8cf675c5146f96ce40ad625.tar.bz2
Missing file, broken build
TBR=huanr Review URL: http://codereview.chromium.org/21335 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9735 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/installer/setup/compat_checks_unittest.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/installer/setup/compat_checks_unittest.cc b/chrome/installer/setup/compat_checks_unittest.cc
new file mode 100644
index 0000000..8fc93bf
--- /dev/null
+++ b/chrome/installer/setup/compat_checks_unittest.cc
@@ -0,0 +1,24 @@
+// 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/util/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, SymantecSEPVersion) {
+ 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"));
+
+ EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(NULL));
+}
+