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 "components/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/macros.h" | 8 #include "base/macros.h" |
9 #include "base/prefs/testing_pref_service.h" | 9 #include "base/prefs/testing_pref_service.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "components/compression/compression_utils.h" | |
12 #include "components/variations/pref_names.h" | 11 #include "components/variations/pref_names.h" |
13 #include "components/variations/proto/study.pb.h" | 12 #include "components/variations/proto/study.pb.h" |
14 #include "components/variations/proto/variations_seed.pb.h" | 13 #include "components/variations/proto/variations_seed.pb.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "third_party/zlib/google/compression_utils.h" |
16 | 16 |
17 #if defined(OS_ANDROID) | 17 #if defined(OS_ANDROID) |
18 #include "components/variations/android/variations_seed_bridge.h" | 18 #include "components/variations/android/variations_seed_bridge.h" |
19 #endif // OS_ANDROID | 19 #endif // OS_ANDROID |
20 | 20 |
21 namespace variations { | 21 namespace variations { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 class TestVariationsSeedStore : public VariationsSeedStore { | 25 class TestVariationsSeedStore : public VariationsSeedStore { |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 &response_date, &is_gzip_compressed); | 413 &response_date, &is_gzip_compressed); |
414 EXPECT_EQ("", seed_data); | 414 EXPECT_EQ("", seed_data); |
415 EXPECT_EQ("", seed_signature); | 415 EXPECT_EQ("", seed_signature); |
416 EXPECT_EQ("", seed_country); | 416 EXPECT_EQ("", seed_country); |
417 EXPECT_EQ("", response_date); | 417 EXPECT_EQ("", response_date); |
418 EXPECT_FALSE(is_gzip_compressed); | 418 EXPECT_FALSE(is_gzip_compressed); |
419 } | 419 } |
420 #endif // OS_ANDROID | 420 #endif // OS_ANDROID |
421 | 421 |
422 } // namespace variations | 422 } // namespace variations |
OLD | NEW |