Fix media_cas_proxy_sdk build issue.
Add example binary for testing building the SDK after 'git clone' from our repo. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=227583629
This commit is contained in:
@@ -16,14 +16,16 @@ namespace {
|
||||
|
||||
class Space1 : public util::ErrorSpaceImpl<Space1> {
|
||||
public:
|
||||
static std::string SpaceName() { return "Space1"; }
|
||||
static std::string CodeToString(int code) { return "Test" + std::to_string(code); }
|
||||
static std::string space_name() { return "Space1"; }
|
||||
static std::string code_to_string(int code) {
|
||||
return "Test" + std::to_string(code);
|
||||
}
|
||||
};
|
||||
|
||||
TEST(ErrorSpaceTest, Basic) {
|
||||
const ErrorSpace* space1 = Space1::Get();
|
||||
EXPECT_EQ("Space1", space1->SpaceName());
|
||||
EXPECT_EQ(Space1::CodeToString(23), space1->String(23));
|
||||
EXPECT_EQ(Space1::code_to_string(23), space1->String(23));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user