// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/offline_items_collection/core/offline_item.h" #include <iostream> namespace offline_items_collection { // All of these methods are not provided in core so that they can't be // accidentally called and linked into Chrome. The declarations are provided // in the core headers to avoid ODR violation that can occur if, for instance, // one test includes these operators and one test does not. std::ostream& operator<<(std::ostream& os, const OfflineItem& item) { … } std::ostream& operator<<(std::ostream& os, const OfflineItemState& state) { … } std::ostream& operator<<(std::ostream& os, FailState state) { … } std::ostream& operator<<(std::ostream& os, PendingState state) { … } std::ostream& operator<<(std::ostream& os, OfflineItemFilter state) { … } } // namespace offline_items_collection