segment_selection_result.cc 812 B

123456789101112131415161718192021222324
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/segmentation_platform/public/segment_selection_result.h"
  5. namespace segmentation_platform {
  6. SegmentSelectionResult::SegmentSelectionResult() = default;
  7. SegmentSelectionResult::~SegmentSelectionResult() = default;
  8. SegmentSelectionResult::SegmentSelectionResult(
  9. const SegmentSelectionResult& other) = default;
  10. SegmentSelectionResult& SegmentSelectionResult::operator=(
  11. const SegmentSelectionResult& other) = default;
  12. bool SegmentSelectionResult::operator==(
  13. const SegmentSelectionResult& other) const {
  14. return is_ready == other.is_ready && segment == other.segment;
  15. }
  16. } // namespace segmentation_platform