chromium/v8/test/unittests/flags/flag-definitions-unittest.cc

// Copyright 2006-2008 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
//     * Redistributions of source code must retain the above copyright
//       notice, this list of conditions and the following disclaimer.
//     * Redistributions in binary form must reproduce the above
//       copyright notice, this list of conditions and the following
//       disclaimer in the documentation and/or other materials provided
//       with the distribution.
//     * Neither the name of Google Inc. nor the names of its
//       contributors may be used to endorse or promote products derived
//       from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include <stdlib.h>

#include "src/flags/flags-impl.h"
#include "src/flags/flags.h"
#include "src/init/v8.h"
#include "test/unittests/fuzztest.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace v8::internal {

class FlagDefinitionsTest : public ::testing::Test {};

void TestDefault() {}

// This test must be executed first!
TEST_F(FlagDefinitionsTest, Default) {}

TEST_F(FlagDefinitionsTest, Flags1) {}

TEST_F(FlagDefinitionsTest, Flags2) {}

TEST_F(FlagDefinitionsTest, Flags2b) {}

TEST_F(FlagDefinitionsTest, Flags3) {}

TEST_F(FlagDefinitionsTest, Flags3b) {}

TEST_F(FlagDefinitionsTest, Flags4) {}

TEST_F(FlagDefinitionsTest, Flags4b) {}

TEST_F(FlagDefinitionsTest, Flags5) {}

TEST_F(FlagDefinitionsTest, Flags5b) {}

TEST_F(FlagDefinitionsTest, Flags6) {}

TEST_F(FlagDefinitionsTest, Flags6b) {}

TEST_F(FlagDefinitionsTest, FlagsRemoveIncomplete) {}

TEST_F(FlagDefinitionsTest, FlagsJitlessImplications) {}

TEST_F(FlagDefinitionsTest, FlagsDisableOptimizingCompilersImplications) {}

TEST_F(FlagDefinitionsTest, FreezeFlags) {}

// Stress implications after setting a flag. We only set one flag, as multiple
// might just lead to known flag contradictions.
void StressFlagImplications(const std::string& s1) {}

V8_FUZZ_TEST();

struct FlagAndName {};

class ExperimentalFlagImplicationTest
    : public ::testing::TestWithParam<FlagAndName> {};

// Check that no experimental feature is enabled; this is executed for different
// {FlagAndName} combinations.
TEST_P(ExperimentalFlagImplicationTest, TestExperimentalNotEnabled) {}

std::string FlagNameToTestName(::testing::TestParamInfo<FlagAndName> info) {}

// MVSC does not like an "#if" inside of a macro, hence define this list outside
// of INSTANTIATE_TEST_SUITE_P.
auto GetFlagImplicationTestVariants() {}

INSTANTIATE_TEST_SUITE_P();

TEST(FlagContradictionsTest, ResolvesContradictions) {}

const char* smallerValues[] =;
const char* largerValues[] =;

TEST(FlagHelpersTest, CompareDifferentFlags) {}

void CheckEqualFlags(const char* f1, const char* f2) {}

TEST(FlagHelpersTest, CompareSameFlags) {}

void CheckFlagInvariants(const std::string& s1, const std::string& s2) {}

V8_FUZZ_TEST();

TEST(FlagInternalsTest, LookupFlagByName) {}

TEST(FlagInternalsTest, LookupAllFlagsByName) {}

TEST(FlagInternalsTest, LookupAllImplicationFlagsByName) {}

}  // namespace v8::internal