#5657 Fix SerialKey expiring unit test

This commit is contained in:
Andrew Nelless 2016-10-17 16:27:40 +01:00
parent 7eefa49c77
commit b5a6ae0a94
1 changed files with 5 additions and 5 deletions

View File

@ -1,11 +1,11 @@
/* /*
* synergy -- mouse and keyboard sharing utility * synergy -- mouse and keyboard sharing utility
* Copyright (C) 2016 Symless Inc. * Copyright (C) 2016 Symless Inc.
* *
* This package is free software; you can redistribute it and/or * This package is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* found in the file LICENSE that should have accompanied this file. * found in the file LICENSE that should have accompanied this file.
* *
* This package is distributed in the hope that it will be useful, * This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@ -129,10 +129,10 @@ TEST(SerialKeyTests, isValid_expiredV2TrialProSerial_invalid)
TEST(SerialKeyTests, isExpiring_validV2TrialBasicSerial_returnFalse) TEST(SerialKeyTests, isExpiring_validV2TrialBasicSerial_returnFalse)
{ {
// {v2;trial;basic;Bob;1;email;company name;0;86400} // {v2;trial;basic;Bob;1;email;company name;1;86400}
SerialKey serial("7B76323B747269616C3B62617369633B426F623B313B656D61696C3B636F6D70616E79206E616D653B303B38363430307D"); SerialKey serial("7B76323B747269616C3B62617369633B426F623B313B656D61696C3B636F6D70616E79206E616D653B313B38363430307D");
EXPECT_EQ(true, serial.isTrial()); EXPECT_EQ(true, serial.isTrial());
EXPECT_TRUE(serial.isExpiring(0)); EXPECT_FALSE(serial.isExpiring(0));
EXPECT_EQ(kBasic, serial.edition()); EXPECT_EQ(kBasic, serial.edition());
} }