commit | c42124e2b3fe8f91020cce6389c74938e72b1659 | [log] [tgz] |
---|---|---|
author | Samuel Tan <samueltan@chromium.org> | Mon Aug 25 16:45:41 2014 -0700 |
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | Tue Aug 26 05:08:48 2014 +0000 |
tree | 53fcc234c06bac9dba424972ba38451b8ca80151 | |
parent | b25083f4ec00167ceed71a7f961e3f1435dbe070 [diff] |
shill: ByteString: fix LessThan function Fix |LessThan| static function so that it properly returns false when lhs is shorter than rhs and the first len(lhs) bytes in rhs is identical to lhs. Add unit tests for LessThan to verify its correctness. BUG=chromium:407370 TEST='P2_TEST_FILTER="shill::ByteString*" USE="clang asan" FEATURES="test" emerge-squawks platform2' succeeds Change-Id: Id3401805fb22cb92bf6dd58e6a583a829bff8b45 Reviewed-on: https://chromium-review.googlesource.com/214100 Tested-by: Samuel Tan <samueltan@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Samuel Tan <samueltan@chromium.org>