Loading cmds/lshal/TableEntry.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -96,8 +96,11 @@ std::string TableEntry::getField(TableColumnType type) const { std::string TableEntry::isReleased() const { static const std::string unreleased = Hash::hexString(Hash::kEmptyHash); if (hash.empty() || hash == unreleased) { return " "; // unknown or unreleased if (hash.empty()) { return "?"; } if (hash == unreleased) { return "N"; // unknown or unreleased } return "Y"; // released } Loading cmds/lshal/test.cpp +10 −10 Original line number Diff line number Diff line Loading @@ -460,18 +460,18 @@ TEST_F(ListTest, DumpDefault) { const std::string expected = "[fake description 0]\n" "R Interface Thread Use Server Clients\n" " a.h.foo1@1.0::IFoo/1 11/21 1 2 4\n" "N a.h.foo1@1.0::IFoo/1 11/21 1 2 4\n" "Y a.h.foo2@2.0::IFoo/2 12/22 2 3 5\n" "\n" "[fake description 1]\n" "R Interface Thread Use Server Clients\n" " a.h.foo3@3.0::IFoo/3 N/A N/A 4 6\n" " a.h.foo4@4.0::IFoo/4 N/A N/A 5 7\n" "? a.h.foo3@3.0::IFoo/3 N/A N/A 4 6\n" "? a.h.foo4@4.0::IFoo/4 N/A N/A 5 7\n" "\n" "[fake description 2]\n" "R Interface Thread Use Server Clients\n" " a.h.foo5@5.0::IFoo/5 N/A N/A 6 8\n" " a.h.foo6@6.0::IFoo/6 N/A N/A 7 9\n" "? a.h.foo5@5.0::IFoo/5 N/A N/A 6 8\n" "? a.h.foo6@6.0::IFoo/6 N/A N/A 7 9\n" "\n"; optind = 1; // mimic Lshal::parseArg() Loading @@ -484,18 +484,18 @@ TEST_F(ListTest, DumpHash) { const std::string expected = "[fake description 0]\n" "Interface R Hash\n" "a.h.foo1@1.0::IFoo/1 0000000000000000000000000000000000000000000000000000000000000000\n" "a.h.foo1@1.0::IFoo/1 N 0000000000000000000000000000000000000000000000000000000000000000\n" "a.h.foo2@2.0::IFoo/2 Y 0202020202020202020202020202020202020202020202020202020202020202\n" "\n" "[fake description 1]\n" "Interface R Hash\n" "a.h.foo3@3.0::IFoo/3 \n" "a.h.foo4@4.0::IFoo/4 \n" "a.h.foo3@3.0::IFoo/3 ? \n" "a.h.foo4@4.0::IFoo/4 ? \n" "\n" "[fake description 2]\n" "Interface R Hash\n" "a.h.foo5@5.0::IFoo/5 \n" "a.h.foo6@6.0::IFoo/6 \n" "a.h.foo5@5.0::IFoo/5 ? \n" "a.h.foo6@6.0::IFoo/6 ? \n" "\n"; optind = 1; // mimic Lshal::parseArg() Loading libs/binder/include/binder/IInterface.h +1 −1 File changed.Contains only whitespace changes. Show changes Loading
cmds/lshal/TableEntry.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -96,8 +96,11 @@ std::string TableEntry::getField(TableColumnType type) const { std::string TableEntry::isReleased() const { static const std::string unreleased = Hash::hexString(Hash::kEmptyHash); if (hash.empty() || hash == unreleased) { return " "; // unknown or unreleased if (hash.empty()) { return "?"; } if (hash == unreleased) { return "N"; // unknown or unreleased } return "Y"; // released } Loading
cmds/lshal/test.cpp +10 −10 Original line number Diff line number Diff line Loading @@ -460,18 +460,18 @@ TEST_F(ListTest, DumpDefault) { const std::string expected = "[fake description 0]\n" "R Interface Thread Use Server Clients\n" " a.h.foo1@1.0::IFoo/1 11/21 1 2 4\n" "N a.h.foo1@1.0::IFoo/1 11/21 1 2 4\n" "Y a.h.foo2@2.0::IFoo/2 12/22 2 3 5\n" "\n" "[fake description 1]\n" "R Interface Thread Use Server Clients\n" " a.h.foo3@3.0::IFoo/3 N/A N/A 4 6\n" " a.h.foo4@4.0::IFoo/4 N/A N/A 5 7\n" "? a.h.foo3@3.0::IFoo/3 N/A N/A 4 6\n" "? a.h.foo4@4.0::IFoo/4 N/A N/A 5 7\n" "\n" "[fake description 2]\n" "R Interface Thread Use Server Clients\n" " a.h.foo5@5.0::IFoo/5 N/A N/A 6 8\n" " a.h.foo6@6.0::IFoo/6 N/A N/A 7 9\n" "? a.h.foo5@5.0::IFoo/5 N/A N/A 6 8\n" "? a.h.foo6@6.0::IFoo/6 N/A N/A 7 9\n" "\n"; optind = 1; // mimic Lshal::parseArg() Loading @@ -484,18 +484,18 @@ TEST_F(ListTest, DumpHash) { const std::string expected = "[fake description 0]\n" "Interface R Hash\n" "a.h.foo1@1.0::IFoo/1 0000000000000000000000000000000000000000000000000000000000000000\n" "a.h.foo1@1.0::IFoo/1 N 0000000000000000000000000000000000000000000000000000000000000000\n" "a.h.foo2@2.0::IFoo/2 Y 0202020202020202020202020202020202020202020202020202020202020202\n" "\n" "[fake description 1]\n" "Interface R Hash\n" "a.h.foo3@3.0::IFoo/3 \n" "a.h.foo4@4.0::IFoo/4 \n" "a.h.foo3@3.0::IFoo/3 ? \n" "a.h.foo4@4.0::IFoo/4 ? \n" "\n" "[fake description 2]\n" "Interface R Hash\n" "a.h.foo5@5.0::IFoo/5 \n" "a.h.foo6@6.0::IFoo/6 \n" "a.h.foo5@5.0::IFoo/5 ? \n" "a.h.foo6@6.0::IFoo/6 ? \n" "\n"; optind = 1; // mimic Lshal::parseArg() Loading
libs/binder/include/binder/IInterface.h +1 −1 File changed.Contains only whitespace changes. Show changes