Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: chrome/browser/metrics/variations/variations_service_unittest.cc

Issue 10828314: Move Variations stuff into variations/ directories and add OWNERS files for the variations client t… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add OWNERS files Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/metrics/variations/variations_service.cc ('k') | chrome/browser/metrics/variations_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698