#include "media/cdm/cdm_paths.h"
#include <string>
#include "base/files/file_path.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "media/media_buildflags.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
namespace {
const char kComponentPlatform[] = …"mac";
#elif BUILDFLAG(IS_WIN)
"win";
#elif BUILDFLAG(IS_CHROMEOS)
"cros";
#elif BUILDFLAG(IS_LINUX)
"linux";
#elif BUILDFLAG(IS_FUCHSIA)
"fuchsia";
#else
#error unsupported platform
#endif
const char kComponentArch[] = …"x86";
#elif defined(ARCH_CPU_X86_64)
"x64";
#elif defined(ARCH_CPU_ARMEL)
"arm";
#elif defined(ARCH_CPU_ARM64)
"arm64";
#else
#error unsupported architecture
#endif
}
TEST(CdmPathsTest, FlagSpecified) { … }
TEST(CdmPathsTest, Prefix) { … }
TEST(CdmPathsTest, Expected) { … }
}