1 // Copyright 2018 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "net/cookies/cookie_change_dispatcher_test_helpers.h" 6 7 #include "base/notreached.h" 8 9 namespace net { 10 11 // Google Test helper. operator <<(std::ostream & os,const CookieChangeCause & cause)12std::ostream& operator<<(std::ostream& os, const CookieChangeCause& cause) { 13 switch (cause) { 14 case CookieChangeCause::INSERTED: 15 return os << "INSERTED"; 16 case CookieChangeCause::EXPLICIT: 17 return os << "EXPLICIT"; 18 case CookieChangeCause::UNKNOWN_DELETION: 19 return os << "UNKNOWN_DELETION"; 20 case CookieChangeCause::OVERWRITE: 21 return os << "OVERWRITE"; 22 case CookieChangeCause::EXPIRED: 23 return os << "EXPIRED"; 24 case CookieChangeCause::EVICTED: 25 return os << "EVICTED"; 26 case CookieChangeCause::EXPIRED_OVERWRITE: 27 return os << "EXPIRED_OVERWRITE"; 28 } 29 NOTREACHED(); 30 return os; 31 } 32 33 } // namespace net 34