blob: 1458afbf2c096b9ef4eee190843b2bf64a223fdc [file] [log] [blame]
// Copyright 2021 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 "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