| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |