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

#include <string>

#include "perfetto/ext/base/flat_hash_map.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::trace_processor {
namespace {

HasSubstr;

Macro;

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

TEST_F(PerfettoSqlPreprocessorUnittest, Empty) {}

TEST_F(PerfettoSqlPreprocessorUnittest, SemiColonTerminatedStatement) {}

TEST_F(PerfettoSqlPreprocessorUnittest, IgnoreOnlySpace) {}

TEST_F(PerfettoSqlPreprocessorUnittest, MultipleStmts) {}

TEST_F(PerfettoSqlPreprocessorUnittest, CreateMacro) {}

TEST_F(PerfettoSqlPreprocessorUnittest, SingleMacro) {}

TEST_F(PerfettoSqlPreprocessorUnittest, NestedMacro) {}

TEST_F(PerfettoSqlPreprocessorUnittest, Stringify) {}

TEST_F(PerfettoSqlPreprocessorUnittest, ZipJoin) {}

TEST_F(PerfettoSqlPreprocessorUnittest, TokenApply) {}

TEST_F(PerfettoSqlPreprocessorUnittest, TokenMapJoin) {}

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