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

Side by Side Diff: content/browser/download/download_file_unittest.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 11 matching lines...) Expand all
22 #include "content/browser/download/download_create_info.h" 22 #include "content/browser/download/download_create_info.h"
23 #include "content/browser/download/download_destination_observer.h" 23 #include "content/browser/download/download_destination_observer.h"
24 #include "content/browser/download/download_file_impl.h" 24 #include "content/browser/download/download_file_impl.h"
25 #include "content/browser/download/download_request_handle.h" 25 #include "content/browser/download/download_request_handle.h"
26 #include "content/public/browser/download_interrupt_reasons.h" 26 #include "content/public/browser/download_interrupt_reasons.h"
27 #include "content/public/browser/download_manager.h" 27 #include "content/public/browser/download_manager.h"
28 #include "content/public/test/mock_download_manager.h" 28 #include "content/public/test/mock_download_manager.h"
29 #include "net/base/file_stream.h" 29 #include "net/base/file_stream.h"
30 #include "net/base/mock_file_stream.h" 30 #include "net/base/mock_file_stream.h"
31 #include "net/base/net_errors.h" 31 #include "net/base/net_errors.h"
32 #include "net/log/net_log_with_source.h"
32 #include "testing/gmock/include/gmock/gmock.h" 33 #include "testing/gmock/include/gmock/gmock.h"
33 #include "testing/gtest/include/gtest/gtest.h" 34 #include "testing/gtest/include/gtest/gtest.h"
34 35
35 using ::testing::_; 36 using ::testing::_;
36 using ::testing::AnyNumber; 37 using ::testing::AnyNumber;
37 using ::testing::DoAll; 38 using ::testing::DoAll;
38 using ::testing::InSequence; 39 using ::testing::InSequence;
39 using ::testing::Return; 40 using ::testing::Return;
40 using ::testing::SetArgPointee; 41 using ::testing::SetArgPointee;
41 using ::testing::StrictMock; 42 using ::testing::StrictMock;
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 EXPECT_CALL(*(observer_.get()), 790 EXPECT_CALL(*(observer_.get()),
790 CurrentUpdateStatus(strlen(kTestData1) + strlen(kTestData2), _)); 791 CurrentUpdateStatus(strlen(kTestData1) + strlen(kTestData2), _));
791 792
792 sink_callback_.Run(); 793 sink_callback_.Run();
793 base::RunLoop().RunUntilIdle(); 794 base::RunLoop().RunUntilIdle();
794 VerifyStreamAndSize(); 795 VerifyStreamAndSize();
795 DestroyDownloadFile(0); 796 DestroyDownloadFile(0);
796 } 797 }
797 798
798 } // namespace content 799 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698