Merge "split-select: fix OSX build" into lmp-mr1-dev

This commit is contained in:
Adam Lesinski
2014-11-11 02:29:57 +00:00
committed by Android (Google) Code Review
3 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ sp<Rule> RuleGenerator::generateDensity(const Vector<int>& allDensities, size_t
densityRule->op = Rule::AND_SUBRULES; densityRule->op = Rule::AND_SUBRULES;
const bool hasAnyDensity = std::find(allDensities.begin(), const bool hasAnyDensity = std::find(allDensities.begin(),
allDensities.end(), ResTable_config::DENSITY_ANY) != allDensities.end(); allDensities.end(), (int) ResTable_config::DENSITY_ANY) != allDensities.end();
if (hasAnyDensity) { if (hasAnyDensity) {
sp<Rule> version = new Rule(); sp<Rule> version = new Rule();

View File

@@ -47,10 +47,10 @@ TEST(RuleGeneratorTest, testAbiRules) {
} }
TEST(RuleGeneratorTest, densityConstantsAreSane) { TEST(RuleGeneratorTest, densityConstantsAreSane) {
EXPECT_LT(263, ConfigDescription::DENSITY_XHIGH); EXPECT_LT(263, (int) ConfigDescription::DENSITY_XHIGH);
EXPECT_GT(262, ConfigDescription::DENSITY_HIGH); EXPECT_GT(262, (int) ConfigDescription::DENSITY_HIGH);
EXPECT_LT(363, ConfigDescription::DENSITY_XXHIGH); EXPECT_LT(363, (int) ConfigDescription::DENSITY_XXHIGH);
EXPECT_GT(362, ConfigDescription::DENSITY_XHIGH); EXPECT_GT(362, (int) ConfigDescription::DENSITY_XHIGH);
} }
TEST(RuleGeneratorTest, testDensityRules) { TEST(RuleGeneratorTest, testDensityRules) {

View File

@@ -75,7 +75,7 @@ const Rule AlwaysTrue() {
const char*, const char*, const char*, const char*,
const sp<Rule>& actual, const Rule& expected) { const sp<Rule>& actual, const Rule& expected) {
const String8 expectedStr(expected.toJson()); const String8 expectedStr(expected.toJson());
const String8 actualStr(actual != NULL ? actual->toJson() : ""); const String8 actualStr(actual != NULL ? actual->toJson() : String8());
if (expectedStr != actualStr) { if (expectedStr != actualStr) {
return ::testing::AssertionFailure() return ::testing::AssertionFailure()