blob: 5fd0280cd521485ecede44ebbf64bb58a8f36256 [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/common/cors_exempt_headers.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace chromecast {
namespace {
TEST(CorsExemptHeadersTest, IsCorsExemptHeader) {
EXPECT_TRUE(IsCorsExemptHeader("CAST-CERT"));
EXPECT_TRUE(IsCorsExemptHeader("Authorization"));
EXPECT_FALSE(IsCorsExemptHeader("TEST-HEADER"));
}
} // namespace
} // namespace chromecast