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

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

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 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
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/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/message_loop/message_loop.h"
12 #include "base/path_service.h" 13 #include "base/path_service.h"
13 #include "base/run_loop.h" 14 #include "base/run_loop.h"
14 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
15 #include "base/test/scoped_task_scheduler.h" 16 #include "base/test/scoped_task_scheduler.h"
16 #include "base/threading/thread_task_runner_handle.h" 17 #include "base/threading/thread_task_runner_handle.h"
17 #include "components/update_client/test_configurator.h" 18 #include "components/update_client/test_configurator.h"
18 #include "components/update_client/url_request_post_interceptor.h" 19 #include "components/update_client/url_request_post_interceptor.h"
19 #include "net/url_request/url_fetcher.h" 20 #include "net/url_request/url_fetcher.h"
20 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
21 22
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 << post_interceptor_1_->GetRequestsAsString(); 259 << post_interceptor_1_->GetRequestsAsString();
259 EXPECT_EQ(1, post_interceptor_1_->GetCount()) 260 EXPECT_EQ(1, post_interceptor_1_->GetCount())
260 << post_interceptor_1_->GetRequestsAsString(); 261 << post_interceptor_1_->GetRequestsAsString();
261 262
262 EXPECT_STREQ("test", post_interceptor_1_->GetRequests()[0].c_str()); 263 EXPECT_STREQ("test", post_interceptor_1_->GetRequests()[0].c_str());
263 EXPECT_EQ(RequestSender::kErrorResponseNotTrusted, error_); 264 EXPECT_EQ(RequestSender::kErrorResponseNotTrusted, error_);
264 EXPECT_TRUE(response_.empty()); 265 EXPECT_TRUE(response_.empty());
265 } 266 }
266 267
267 } // namespace update_client 268 } // namespace update_client
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698