chromium/third_party/perfetto/src/trace_processor/perfetto_sql/engine/perfetto_sql_parser_unittest.cc

/*
 * Copyright (C) 2023 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "src/trace_processor/perfetto_sql/engine/perfetto_sql_parser.h"

#include <cstdint>
#include <variant>
#include <vector>

#include "perfetto/base/logging.h"
#include "perfetto/ext/base/status_or.h"
#include "src/trace_processor/perfetto_sql/engine/perfetto_sql_test_utils.h"
#include "src/trace_processor/sqlite/sql_source.h"
#include "test/gtest_and_gmock.h"

namespace perfetto {
namespace trace_processor {

Result;
Statement;
SqliteSql;
CreateFn;
CreateTable;
CreateView;
Include;
CreateMacro;
CreateIndex;

namespace {

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

TEST_F(PerfettoSqlParserTest, Empty) {}

TEST_F(PerfettoSqlParserTest, SemiColonTerminatedStatement) {}

TEST_F(PerfettoSqlParserTest, MultipleStmts) {}

TEST_F(PerfettoSqlParserTest, IgnoreOnlySpace) {}

TEST_F(PerfettoSqlParserTest, CreatePerfettoFunctionScalar) {}

TEST_F(PerfettoSqlParserTest, CreateOrReplacePerfettoFunctionScalar) {}

TEST_F(PerfettoSqlParserTest, CreatePerfettoFunctionScalarError) {}

TEST_F(PerfettoSqlParserTest, CreatePerfettoFunctionAndOther) {}

TEST_F(PerfettoSqlParserTest, IncludePerfettoTrivial) {}

TEST_F(PerfettoSqlParserTest, IncludePerfettoErrorAdditionalChars) {}

TEST_F(PerfettoSqlParserTest, IncludePerfettoErrorWrongModuleName) {}

TEST_F(PerfettoSqlParserTest, CreatePerfettoMacro) {}

TEST_F(PerfettoSqlParserTest, CreateOrReplacePerfettoMacro) {}

TEST_F(PerfettoSqlParserTest, CreatePerfettoMacroAndOther) {}

TEST_F(PerfettoSqlParserTest, CreatePerfettoTable) {}

TEST_F(PerfettoSqlParserTest, CreateOrReplacePerfettoTable) {}

TEST_F(PerfettoSqlParserTest, CreatePerfettoTableWithSchema) {}

TEST_F(PerfettoSqlParserTest, CreatePerfettoTableAndOther) {}

TEST_F(PerfettoSqlParserTest, CreatePerfettoView) {}

TEST_F(PerfettoSqlParserTest, CreateOrReplacePerfettoView) {}

TEST_F(PerfettoSqlParserTest, CreatePerfettoViewAndOther) {}

TEST_F(PerfettoSqlParserTest, CreatePerfettoViewWithSchema) {}

}  // namespace
}  // namespace trace_processor
}  // namespace perfetto