| Index: components/variations/study_filtering_unittest.cc
|
| diff --git a/components/variations/study_filtering_unittest.cc b/components/variations/study_filtering_unittest.cc
|
| index 1d70c48c8cf04ef5f78ca8781f783a95dfb375c6..c9728e4fddc9fe6915e4dd8cceb17b05a90dd5fc 100644
|
| --- a/components/variations/study_filtering_unittest.cc
|
| +++ b/components/variations/study_filtering_unittest.cc
|
| @@ -255,6 +255,22 @@ TEST(VariationsStudyFilteringTest, CheckStudyPlatform) {
|
| }
|
| }
|
|
|
| +TEST(VariationsStudyFilteringTest, CheckStudyLowEndDevice) {
|
| + Study::Filter filter;
|
| +
|
| + // Check that if the filter is not set, study applies to either low end value.
|
| + EXPECT_TRUE(internal::CheckStudyLowEndDevice(filter, true));
|
| + EXPECT_TRUE(internal::CheckStudyLowEndDevice(filter, false));
|
| +
|
| + filter.set_is_low_end_device(true);
|
| + EXPECT_TRUE(internal::CheckStudyLowEndDevice(filter, true));
|
| + EXPECT_FALSE(internal::CheckStudyLowEndDevice(filter, false));
|
| +
|
| + filter.set_is_low_end_device(false);
|
| + EXPECT_FALSE(internal::CheckStudyLowEndDevice(filter, true));
|
| + EXPECT_TRUE(internal::CheckStudyLowEndDevice(filter, false));
|
| +}
|
| +
|
| TEST(VariationsStudyFilteringTest, CheckStudyStartDate) {
|
| const base::Time now = base::Time::Now();
|
| const base::TimeDelta delta = base::TimeDelta::FromHours(1);
|
|
|