chromium/third_party/perfetto/src/trace_processor/perfetto_sql/engine/perfetto_sql_engine_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_engine.h"

#include "src/trace_processor/sqlite/sql_source.h"
#include "src/trace_processor/tables/slice_tables_py.h"
#include "test/gtest_and_gmock.h"

namespace perfetto {
namespace trace_processor {
namespace {

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

sql_modules::RegisteredModule CreateTestModule(
    std::vector<std::pair<std::string, std::string>> files) {}

// These are the smoke tests for the perfetto SQL engine, focusing on
// ensuring that the correct statements do not return an error and that
// incorrect statements do.
//
// Functional tests are covered by the diff tests in
// test/trace_processor/diff_tests/syntax/perfetto_sql.

TEST_F(PerfettoSqlEngineTest, Function_Create) {}

TEST_F(PerfettoSqlEngineTest, Function_CreateWithArgs) {}

TEST_F(PerfettoSqlEngineTest, Function_Invalid) {}

TEST_F(PerfettoSqlEngineTest, Function_Duplicates) {}

TEST_F(PerfettoSqlEngineTest, TableFunction_Create) {}

TEST_F(PerfettoSqlEngineTest, TableFunction_Duplicates) {}

TEST_F(PerfettoSqlEngineTest, Table_Create) {}

TEST_F(PerfettoSqlEngineTest, Table_StringColumns) {}

TEST_F(PerfettoSqlEngineTest, Table_Schema) {}

TEST_F(PerfettoSqlEngineTest, Table_Schema_EmptyTable) {}

TEST_F(PerfettoSqlEngineTest, Table_Schema_NullColumn) {}

TEST_F(PerfettoSqlEngineTest, Table_IncorrectSchema_MissingColumn) {}

TEST_F(PerfettoSqlEngineTest, Table_IncorrectSchema_IncorrectType) {}

TEST_F(PerfettoSqlEngineTest, Table_Drop) {}

TEST_F(PerfettoSqlEngineTest, Table_Duplicates) {}

TEST_F(PerfettoSqlEngineTest, View_Create) {}

TEST_F(PerfettoSqlEngineTest, View_Schema) {}

TEST_F(PerfettoSqlEngineTest, View_Drop) {}

TEST_F(PerfettoSqlEngineTest, View_IncorrectSchema) {}

TEST_F(PerfettoSqlEngineTest, View_Duplicates) {}

TEST_F(PerfettoSqlEngineTest, Macro_Create) {}

TEST_F(PerfettoSqlEngineTest, Macro_Duplicates) {}

TEST_F(PerfettoSqlEngineTest, Include_All) {}

TEST_F(PerfettoSqlEngineTest, Include_Module) {}

TEST_F(PerfettoSqlEngineTest, MismatchedRange) {}

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