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

Side by Side Diff: components/variations/variations_seed_store_unittest.cc

Issue 1271123003: Componentize VariationsSeedStore and its unittest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@componentize_variations_prefs
Patch Set: Rebase Created 5 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
« no previous file with comments | « components/variations/variations_seed_store.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/metrics/variations/variations_seed_store.h" 5 #include "components/variations/variations_seed_store.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/prefs/testing_pref_service.h" 8 #include "base/prefs/testing_pref_service.h"
9 #include "components/compression/compression_utils.h" 9 #include "components/compression/compression_utils.h"
10 #include "components/variations/pref_names.h" 10 #include "components/variations/pref_names.h"
11 #include "components/variations/proto/study.pb.h" 11 #include "components/variations/proto/study.pb.h"
12 #include "components/variations/proto/variations_seed.pb.h" 12 #include "components/variations/proto/variations_seed.pb.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace chrome_variations { 15 namespace chrome_variations {
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 EXPECT_TRUE(base::Base64Decode(base64_after_seed_data, &after_seed_data)); 340 EXPECT_TRUE(base::Base64Decode(base64_after_seed_data, &after_seed_data));
341 EXPECT_TRUE(base::Base64Decode(base64_delta_data, &delta_data)); 341 EXPECT_TRUE(base::Base64Decode(base64_delta_data, &delta_data));
342 342
343 std::string output; 343 std::string output;
344 EXPECT_TRUE(VariationsSeedStore::ApplyDeltaPatch(before_seed_data, delta_data, 344 EXPECT_TRUE(VariationsSeedStore::ApplyDeltaPatch(before_seed_data, delta_data,
345 &output)); 345 &output));
346 EXPECT_EQ(after_seed_data, output); 346 EXPECT_EQ(after_seed_data, output);
347 } 347 }
348 348
349 } // namespace chrome_variations 349 } // namespace chrome_variations
OLDNEW
« no previous file with comments | « components/variations/variations_seed_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698