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

Side by Side Diff: components/feedback/feedback_uploader_chrome_unittest.cc

Issue 1530133005: Refactor VariationsHttpHeaderProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing include to srt_fetcher_win.cc. Created 5 years 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/feedback/feedback_uploader_chrome.cc ('k') | components/metrics/metrics_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/feedback/feedback_uploader_chrome.h" 5 #include "components/feedback/feedback_uploader_chrome.h"
6 6
7 #include <string>
8
7 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
8 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
9 #include "components/variations/net/variations_http_header_provider.h"
10 #include "components/variations/variations_associated_data.h" 11 #include "components/variations/variations_associated_data.h"
12 #include "components/variations/variations_http_header_provider.h"
11 #include "content/public/test/test_browser_context.h" 13 #include "content/public/test/test_browser_context.h"
12 #include "net/url_request/test_url_fetcher_factory.h" 14 #include "net/url_request/test_url_fetcher_factory.h"
13 #include "net/url_request/url_fetcher_delegate.h" 15 #include "net/url_request/url_fetcher_delegate.h"
14 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
15 17
16 namespace feedback { 18 namespace feedback {
17 19
18 class FeedbackUploaderChromeTest : public ::testing::Test { 20 class FeedbackUploaderChromeTest : public ::testing::Test {
19 protected: 21 protected:
20 FeedbackUploaderChromeTest() {} 22 FeedbackUploaderChromeTest() {}
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 std::string value; 63 std::string value;
62 EXPECT_TRUE(headers.GetHeader("X-Client-Data", &value)); 64 EXPECT_TRUE(headers.GetHeader("X-Client-Data", &value));
63 EXPECT_FALSE(value.empty()); 65 EXPECT_FALSE(value.empty());
64 // The fetcher's delegate is responsible for freeing the fetcher (and itself). 66 // The fetcher's delegate is responsible for freeing the fetcher (and itself).
65 fetcher->delegate()->OnURLFetchComplete(fetcher); 67 fetcher->delegate()->OnURLFetchComplete(fetcher);
66 68
67 variations::VariationsHttpHeaderProvider::GetInstance()->ResetForTesting(); 69 variations::VariationsHttpHeaderProvider::GetInstance()->ResetForTesting();
68 } 70 }
69 71
70 } // namespace feedback 72 } // namespace feedback
OLDNEW
« no previous file with comments | « components/feedback/feedback_uploader_chrome.cc ('k') | components/metrics/metrics_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698