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

Side by Side Diff: components/update_client/request_sender_unittest.cc

Issue 1970833002: Fix include path for moved thread_task_runner_handle.h header in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 Created 4 years, 7 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/update_client/request_sender.cc ('k') | components/update_client/task_update.cc » ('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 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/update_client/request_sender.h" 5 #include "components/update_client/request_sender.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "components/update_client/test_configurator.h" 14 #include "components/update_client/test_configurator.h"
15 #include "components/update_client/url_request_post_interceptor.h" 15 #include "components/update_client/url_request_post_interceptor.h"
16 #include "net/url_request/url_fetcher.h" 16 #include "net/url_request/url_fetcher.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace update_client { 19 namespace update_client {
20 20
21 namespace { 21 namespace {
22 22
23 const char kUrl1[] = "https://localhost2/path1"; 23 const char kUrl1[] = "https://localhost2/path1";
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 << post_interceptor_1_->GetRequestsAsString(); 256 << post_interceptor_1_->GetRequestsAsString();
257 EXPECT_EQ(1, post_interceptor_1_->GetCount()) 257 EXPECT_EQ(1, post_interceptor_1_->GetCount())
258 << post_interceptor_1_->GetRequestsAsString(); 258 << post_interceptor_1_->GetRequestsAsString();
259 259
260 EXPECT_STREQ("test", post_interceptor_1_->GetRequests()[0].c_str()); 260 EXPECT_STREQ("test", post_interceptor_1_->GetRequests()[0].c_str());
261 EXPECT_EQ(RequestSender::kErrorResponseNotTrusted, error_); 261 EXPECT_EQ(RequestSender::kErrorResponseNotTrusted, error_);
262 EXPECT_TRUE(response_.empty()); 262 EXPECT_TRUE(response_.empty());
263 } 263 }
264 264
265 } // namespace update_client 265 } // namespace update_client
OLDNEW
« no previous file with comments | « components/update_client/request_sender.cc ('k') | components/update_client/task_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698