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

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

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/crx_downloader.cc ('k') | components/update_client/ping_manager.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 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
14 #include "build/build_config.h"
14 #include "components/update_client/crx_downloader.h" 15 #include "components/update_client/crx_downloader.h"
15 #include "net/base/net_errors.h" 16 #include "net/base/net_errors.h"
16 #include "net/url_request/test_url_request_interceptor.h" 17 #include "net/url_request/test_url_request_interceptor.h"
17 #include "net/url_request/url_request_test_util.h" 18 #include "net/url_request/url_request_test_util.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 20
20 using base::ContentsEqual; 21 using base::ContentsEqual;
21 22
22 namespace update_client { 23 namespace update_client {
23 24
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 376
376 EXPECT_EQ(0, get_interceptor_->GetHitCount()); 377 EXPECT_EQ(0, get_interceptor_->GetHitCount());
377 378
378 EXPECT_EQ(1, num_download_complete_calls_); 379 EXPECT_EQ(1, num_download_complete_calls_);
379 EXPECT_EQ(kExpectedContext, crx_context_); 380 EXPECT_EQ(kExpectedContext, crx_context_);
380 EXPECT_NE(0, download_complete_result_.error); 381 EXPECT_NE(0, download_complete_result_.error);
381 EXPECT_TRUE(download_complete_result_.response.empty()); 382 EXPECT_TRUE(download_complete_result_.response.empty());
382 } 383 }
383 384
384 } // namespace update_client 385 } // namespace update_client
OLDNEW
« no previous file with comments | « components/update_client/crx_downloader.cc ('k') | components/update_client/ping_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698