OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/base64.h" | 5 #include "base/base64.h" |
6 #include "base/string_split.h" | 6 #include "base/string_split.h" |
7 #include "chrome/browser/metrics/proto/study.pb.h" | 7 #include "chrome/browser/metrics/proto/study.pb.h" |
8 #include "chrome/browser/metrics/variations_service.h" | 8 #include "chrome/browser/metrics/variations/variations_service.h" |
9 #include "chrome/common/chrome_version_info.h" | 9 #include "chrome/common/chrome_version_info.h" |
10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
11 #include "chrome/test/base/testing_pref_service.h" | 11 #include "chrome/test/base/testing_pref_service.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace chrome_variations { | 14 namespace chrome_variations { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 // Converts |time| to Study proto format. | 18 // Converts |time| to Study proto format. |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 ASSERT_TRUE(valid); | 449 ASSERT_TRUE(valid); |
450 Study_Experiment* repeated_group = study.add_experiment(); | 450 Study_Experiment* repeated_group = study.add_experiment(); |
451 repeated_group->set_name("abc"); | 451 repeated_group->set_name("abc"); |
452 repeated_group->set_probability_weight(1); | 452 repeated_group->set_probability_weight(1); |
453 valid = VariationsService::ValidateStudyAndComputeTotalProbability(study, | 453 valid = VariationsService::ValidateStudyAndComputeTotalProbability(study, |
454 &total_probability); | 454 &total_probability); |
455 EXPECT_FALSE(valid); | 455 EXPECT_FALSE(valid); |
456 } | 456 } |
457 | 457 |
458 } // namespace chrome_variations | 458 } // namespace chrome_variations |
OLD | NEW |