| Index: dbus/object_path.cc
|
| diff --git a/dbus/object_path.cc b/dbus/object_path.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e0ee783e4038d73062f4372cc85dbca13e68cf0b
|
| --- /dev/null
|
| +++ b/dbus/object_path.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "dbus/object_path.h"
|
| +
|
| +#include <ostream>
|
| +#include <string>
|
| +
|
| +namespace dbus {
|
| +
|
| +bool operator<(const ObjectPath& lhs, const ObjectPath& rhs) {
|
| + return lhs.value() < rhs.value();
|
| +}
|
| +
|
| +bool operator==(const ObjectPath& lhs, const ObjectPath& rhs) {
|
| + return lhs.value() == rhs.value();
|
| +}
|
| +
|
| +bool operator!=(const ObjectPath& lhs, const ObjectPath& rhs) {
|
| + return lhs.value() != rhs.value();
|
| +}
|
| +
|
| +std::ostream& operator<<(std::ostream& os, const ObjectPath& object_path) {
|
| + os << object_path.value();
|
| + return os;
|
| +}
|
| +
|
| +} // namespace dbus
|
|
|