blob: 14fc77ad3a3fceb2b0b15bde07c117399c2fca2f [file]
// Copyright 2016 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 "components/subresource_filter/core/common/activation_level.h"
#include <ostream>
#include "base/logging.h"
namespace subresource_filter {
std::ostream& operator<<(std::ostream& os, const ActivationLevel& level) {
switch (level) {
case ActivationLevel::DISABLED:
os << "DISABLED";
break;
case ActivationLevel::DRYRUN:
os << "DRYRUN";
break;
case ActivationLevel::ENABLED:
os << "ENABLED";
break;
default:
NOTREACHED();
break;
}
return os;
}
} // namespace subresource_filter