0
Files
src/dbus/object_path.cc
Avi Drissman f75e37fb60 Update copyright headers in dbus/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c34.

No-Try: true
Bug: 1098010
Change-Id: Id0e774f0a2778c9651c064cabd38146f92989536
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3894315
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1046513}
2022-09-13 19:40:31 +00:00

34 lines
706 B
C++

// Copyright 2012 The Chromium Authors
// 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 "dbus/string_util.h"
namespace dbus {
bool ObjectPath::IsValid() const {
return IsValidObjectPath(value_);
}
bool ObjectPath::operator<(const ObjectPath& that) const {
return value_ < that.value_;
}
bool ObjectPath::operator==(const ObjectPath& that) const {
return value_ == that.value_;
}
bool ObjectPath::operator!=(const ObjectPath& that) const {
return value_ != that.value_;
}
void PrintTo(const ObjectPath& path, std::ostream* out) {
*out << path.value();
}
} // namespace dbus