Android-cuttlefish cvd tool
Classes | Namespaces | Functions
system_image_dir_path_resolution_test.cc File Reference
#include "cuttlefish/host/commands/assemble_cvd/system_image_dir_path_resolution.h"
#include <sys/stat.h>
#include <cstddef>
#include <fstream>
#include <string>
#include <string_view>
#include "absl/strings/str_cat.h"
#include "android-base/file.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "cuttlefish/result/result_matchers.h"
Include dependency graph for system_image_dir_path_resolution_test.cc:

Classes

class  cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::SystemImageDirPathResolutionTest
 

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}
 

Functions

 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, ResolveSystemImageDirPath_EmptyValueStaysEmpty)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, ResolveCrosvmDeviceTreeOverlayPath_EmptyValueStaysEmpty)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, ResolveCrosvmFileBackedMappingPath_EmptyValueStaysEmpty)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, RelativePathIsJoinedWithSystemImageDir)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, JoinInsertsExactlyOneSeparator)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, AbsolutePathIsNotRewritten)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, MissingRelativeFileFailsNamingResolvedPath)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayResolvesBarePath)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayPreservesFilterSuffix)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayPreservesInnerCommas)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayPreservesTrailingComma)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayAbsolutePathIsNotRewritten)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayKeyedAbsolutePathIsNotRewritten)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayResolvesKeyedRelativePath)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayKeyedMissingFileFails)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayOtherLeadingKeyIsUntouched)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayKeyedPathWithEqualsIsResolved)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayEmptyKeyedPathAndLeadingEqualsAreUntouched)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, DeviceTreeOverlayMissingFileFails)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, FileBackedMappingRewritesOnlyThePathToken)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, FileBackedMappingPreservesTokenOrder)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, FileBackedMappingAbsolutePathIsNotRewritten)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, FileBackedMappingWithoutPathTokenIsUntouched)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, FileBackedMappingWithoutPathTokenIsUntouchedWhenRelative)
 
 cuttlefish::anonymous_namespace{system_image_dir_path_resolution_test.cc}::TEST_F (SystemImageDirPathResolutionTest, FileBackedMappingMissingFileFails)