commit | a2a8184180557e980387f769ac3915eb9e072f8b | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Fri Jan 20 14:48:15 2017 -0800 |
committer | Steven Moreland <smoreland@google.com> | Fri Jan 20 15:40:37 2017 -0800 |
tree | 1acf15546664f895d1ed40b10be3f2816eeec63e | |
parent | d473c2b8c58b006336bda14a1765a8f7f31b7dae [diff] [blame] |
hidl_string: add operator< This allows us to std::sort vecs of hidl_strings, etc.. Test: libhidl_test Change-Id: I6e9a7669bceb09d62791fe8c88cfd1977ea07194
diff --git a/test_main.cpp b/test_main.cpp index 1967614..6e9bf25 100644 --- a/test_main.cpp +++ b/test_main.cpp
@@ -81,6 +81,9 @@ s.clear(); // should not affect myCString EXPECT_STREQ(myCString, "myDString"); + // operator < + EXPECT_LT("ab", "bcd"); + // casts s = "great"; std::string myString = s;