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 <vector> | 5 #include <vector> |
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 "base/string_split.h" | 9 #include "base/strings/string_split.h" |
10 #include "chrome/browser/metrics/proto/study.pb.h" | 10 #include "chrome/browser/metrics/proto/study.pb.h" |
11 #include "chrome/browser/metrics/variations/resource_request_allowed_notifier_te
st_util.h" | 11 #include "chrome/browser/metrics/variations/resource_request_allowed_notifier_te
st_util.h" |
12 #include "chrome/browser/metrics/variations/variations_service.h" | 12 #include "chrome/browser/metrics/variations/variations_service.h" |
13 #include "chrome/common/chrome_version_info.h" | 13 #include "chrome/common/chrome_version_info.h" |
14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
15 #include "chrome/test/base/testing_browser_process.h" | 15 #include "chrome/test/base/testing_browser_process.h" |
16 #include "content/public/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
17 #include "net/http/http_response_headers.h" | 17 #include "net/http/http_response_headers.h" |
18 #include "net/http/http_status_code.h" | 18 #include "net/http/http_status_code.h" |
19 #include "net/url_request/test_url_fetcher_factory.h" | 19 #include "net/url_request/test_url_fetcher_factory.h" |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 | 576 |
577 net::TestURLFetcher* fetcher = factory.GetFetcherByID(0); | 577 net::TestURLFetcher* fetcher = factory.GetFetcherByID(0); |
578 SimulateServerResponse(non_ok_status_codes[i], fetcher); | 578 SimulateServerResponse(non_ok_status_codes[i], fetcher); |
579 variations_service.OnURLFetchComplete(fetcher); | 579 variations_service.OnURLFetchComplete(fetcher); |
580 | 580 |
581 EXPECT_TRUE(prefs.FindPreference(prefs::kVariationsSeed)->IsDefaultValue()); | 581 EXPECT_TRUE(prefs.FindPreference(prefs::kVariationsSeed)->IsDefaultValue()); |
582 } | 582 } |
583 } | 583 } |
584 | 584 |
585 } // namespace chrome_variations | 585 } // namespace chrome_variations |
OLD | NEW |