#include "tools/binary_size/libsupersize/viewer/caspian/diff.h"
#include <stdint.h>
#include <deque>
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "testing/gtest/include/gtest/gtest.h"
#include "tools/binary_size/libsupersize/viewer/caspian/model.h"
namespace caspian {
namespace {
Symbol MakeSymbol(SectionId section_id,
int32_t size,
const char* path,
std::string_view name = "") { … }
void SetName(Symbol* symbol, std::string_view full_name) { … }
int32_t SumOfSymbolSizes(const DeltaSizeInfo& info) { … }
int32_t SumOfSymbolPadding(const DeltaSizeInfo& info) { … }
std::unique_ptr<SizeInfo> CreateSizeInfo() { … }
void MakeAliasGroup(SizeInfo* info, size_t start, size_t end) { … }
class DiffTest : public testing::Test { … };
TEST_F(DiffTest, TestIdentity) { … }
TEST_F(DiffTest, TestSimpleAdd) { … }
TEST_F(DiffTest, TestSimpleDelete) { … }
TEST_F(DiffTest, TestSimpleChange) { … }
TEST_F(DiffTest, TestDontMatchAcrossSections) { … }
TEST_F(DiffTest, TestDontMatchAcrossContainers) { … }
TEST_F(DiffTest, TestAliasesRemove) { … }
TEST_F(DiffTest, TestAliasesAdd) { … }
TEST_F(DiffTest, TestAliasesChangeGroup) { … }
TEST_F(DiffTest, TestStarSymbolNormalization) { … }
TEST_F(DiffTest, TestNumberNormalization) { … }
TEST_F(DiffTest, TestChangedParams) { … }
TEST_F(DiffTest, TestChangedPathsNative) { … }
TEST_F(DiffTest, TestChangedPathsJava) { … }
TEST_F(DiffTest, TestChangedPathsChangedParams) { … }
TEST_F(DiffTest, TestChangedPathsStringLiterals) { … }
TEST_F(DiffTest, TestChangedPathsNamedStringLiteralsSameSize) { … }
TEST_F(DiffTest, TestChangedPathsNamedStringLiteralsDifferentSize) { … }
}
}