naiveproxy/src/net/cookies/cookie_change_dispatcher_test_helpers.cc
2020-02-05 22:06:49 +08:00

34 lines
964 B
C++

// 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";
}
NOTREACHED();
return os;
}
} // namespace net