Merge "split-select: fix OSX build" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
be593a7778
@@ -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();
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user