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

Side by Side Diff: components/update_client/crx_downloader_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/crx_downloader.h" 5 #include "components/update_client/crx_downloader.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/message_loop/message_loop.h"
14 #include "base/path_service.h" 15 #include "base/path_service.h"
15 #include "base/run_loop.h" 16 #include "base/run_loop.h"
16 #include "base/threading/thread_task_runner_handle.h" 17 #include "base/threading/thread_task_runner_handle.h"
17 #include "build/build_config.h" 18 #include "build/build_config.h"
18 #include "components/update_client/update_client_errors.h" 19 #include "components/update_client/update_client_errors.h"
19 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
20 #include "net/url_request/test_url_request_interceptor.h" 21 #include "net/url_request/test_url_request_interceptor.h"
21 #include "net/url_request/url_request_test_util.h" 22 #include "net/url_request/url_request_test_util.h"
22 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
23 24
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 429
429 EXPECT_EQ(0, get_interceptor_->GetHitCount()); 430 EXPECT_EQ(0, get_interceptor_->GetHitCount());
430 431
431 EXPECT_EQ(1, num_download_complete_calls_); 432 EXPECT_EQ(1, num_download_complete_calls_);
432 EXPECT_EQ(kExpectedContext, crx_context_); 433 EXPECT_EQ(kExpectedContext, crx_context_);
433 EXPECT_NE(0, download_complete_result_.error); 434 EXPECT_NE(0, download_complete_result_.error);
434 EXPECT_TRUE(download_complete_result_.response.empty()); 435 EXPECT_TRUE(download_complete_result_.response.empty());
435 } 436 }
436 437
437 } // namespace update_client 438 } // namespace update_client
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698