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

Unified Diff: net/der/parse_values_unittest.cc

Issue 2075783002: Adding additional comparison operators for GeneralizedTime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unittest. Created 4 years, 6 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 | « net/der/parse_values.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/der/parse_values_unittest.cc
diff --git a/net/der/parse_values_unittest.cc b/net/der/parse_values_unittest.cc
index b29634f15acc33cd0b7a6b6a86914536fa319d4b..07d7541a62e9b54890818802a16d1c160fd3c93e 100644
--- a/net/der/parse_values_unittest.cc
+++ b/net/der/parse_values_unittest.cc
@@ -173,6 +173,12 @@ TEST(ParseValuesTest, TimesCompare) {
EXPECT_TRUE(time1 < time2);
EXPECT_TRUE(time2 < time3);
EXPECT_TRUE(time3 < time4);
+
+ EXPECT_TRUE(time2 > time1);
+ EXPECT_TRUE(time2 >= time1);
+ EXPECT_TRUE(time3 <= time4);
+ EXPECT_TRUE(time1 <= time1);
+ EXPECT_TRUE(time1 >= time1);
}
struct Uint64TestData {
« no previous file with comments | « net/der/parse_values.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698