~sil2100/dbus-cpp/fix_ftbfs_gtest

« back to all changes in this revision

Viewing changes to src/core/dbus/message.cpp

  • Committer: Bileto Bot
  • Date: 2016-08-09 07:31:05 UTC
  • mfrom: (101.1.9 enable-dual-landings)
  • Revision ID: ci-train-bot@canonical.com-20160809073105-slgha9rqxjx9y3b0
* debian/libdbus-cpp4.symbols.32bit: update to released version.
* debian/libdbus-cpp4.symbols.64bit: update to released version.
* Add a proper operator<< for dbus::Message::Type. (LP: #1524131)
* Only run dbus_shutdown if explicitly requested by env var. (LP:
  #1422304, #1526877)
* New rebuild forced.
* Ensure that Signal with non-void argument types correctly narrow
  their match rules. (LP: #1480877)
* New rebuild forced.
* Do not cache emitted values for stub signals. (LP: #1509285)
* Ensure that the signals are correctly emitted for when the services
  appear and go.

Show diffs side-by-side

added added

removed removed

Lines of Context:
652
652
{
653
653
    return std::shared_ptr<Message>(new Message(d->clone()));
654
654
}
 
655
 
 
656
std::ostream& operator<<(std::ostream& out, Message::Type type)
 
657
{
 
658
    switch (type)
 
659
    {
 
660
    case Message::Type::error:
 
661
        return out << "error";
 
662
    case Message::Type::invalid:
 
663
        return out << "invalid";
 
664
    case Message::Type::method_call:
 
665
        return out << "method_call";
 
666
    case Message::Type::method_return:
 
667
        return out << "method_return";
 
668
    case Message::Type::signal:
 
669
        return out << "signal";
 
670
    }
 
671
 
 
672
    return out;
 
673
}
655
674
}
656
675
}