blob: 0db6daaa5e818d29190c86972777682ba519cdc6 [file] [log] [blame]
// Copyright 2018 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 "net/cookies/cookie_change_dispatcher_test_helpers.h"
#include "base/logging.h"
namespace net {
// Google Test helper.
std::ostream& operator<<(std::ostream& os, const CookieChangeCause& cause) {
switch (cause) {
case CookieChangeCause::INSERTED:
return os << "INSERTED";
case CookieChangeCause::EXPLICIT:
return os << "EXPLICIT";
case CookieChangeCause::UNKNOWN_DELETION:
return os << "UNKNOWN_DELETION";
case CookieChangeCause::OVERWRITE:
return os << "OVERWRITE";
case CookieChangeCause::EXPIRED:
return os << "EXPIRED";
case CookieChangeCause::EVICTED:
return os << "EVICTED";
case CookieChangeCause::EXPIRED_OVERWRITE:
return os << "EXPIRED_OVERWRITE";
return os;
} // namespace net