#include "sandbox/linux/bpf_dsl/codegen.h"
#include <stddef.h>
#include <stdint.h>
#include <map>
#include <string_view>
#include <utility>
#include <vector>
#include "base/hash/md5.h"
#include "sandbox/linux/system_headers/linux_filter.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace sandbox {
namespace {
class Hash { … };
const Hash Hash::kZero;
TEST(CodeGen, HashSanity) { … }
class ProgramTest : public ::testing::Test { … };
TEST_F(ProgramTest, OneInstruction) { … }
TEST_F(ProgramTest, SimpleBranch) { … }
TEST_F(ProgramTest, AtypicalBranch) { … }
TEST_F(ProgramTest, Complex) { … }
TEST_F(ProgramTest, ConfusingTails) { … }
TEST_F(ProgramTest, ConfusingTailsBasic) { … }
TEST_F(ProgramTest, ConfusingTailsMergeable) { … }
TEST_F(ProgramTest, InstructionFolding) { … }
TEST_F(ProgramTest, FarBranches) { … }
TEST_F(ProgramTest, JumpReuse) { … }
}
}