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

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

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/file_util.h" 5 #include "base/file_util.h"
6 #include "base/memory/scoped_temp_dir.h"
7 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/scoped_temp_dir.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "chrome/browser/download/download_file.h" 9 #include "chrome/browser/download/download_file.h"
10 #include "chrome/browser/download/download_manager.h" 10 #include "chrome/browser/download/download_manager.h"
11 #include "chrome/browser/download/download_process_handle.h" 11 #include "chrome/browser/download/download_process_handle.h"
12 #include "chrome/browser/download/download_status_updater.h" 12 #include "chrome/browser/download/download_status_updater.h"
13 #include "chrome/browser/download/download_util.h" 13 #include "chrome/browser/download/download_util.h"
14 #include "chrome/browser/download/mock_download_manager.h" 14 #include "chrome/browser/download/mock_download_manager.h"
15 #include "chrome/browser/history/download_create_info.h" 15 #include "chrome/browser/history/download_create_info.h"
16 #include "content/browser/browser_thread.h" 16 #include "content/browser/browser_thread.h"
17 #include "net/base/file_stream.h" 17 #include "net/base/file_stream.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Check the files. 184 // Check the files.
185 EXPECT_FALSE(file_util::PathExists(path_3)); 185 EXPECT_FALSE(file_util::PathExists(path_3));
186 EXPECT_TRUE(file_util::PathExists(path_4)); 186 EXPECT_TRUE(file_util::PathExists(path_4));
187 187
188 // Check the hash. 188 // Check the hash.
189 EXPECT_TRUE(download_file_->GetSha256Hash(&hash)); 189 EXPECT_TRUE(download_file_->GetSha256Hash(&hash));
190 EXPECT_EQ(kDataHash, base::HexEncode(hash.data(), hash.size())); 190 EXPECT_EQ(kDataHash, base::HexEncode(hash.data(), hash.size()));
191 191
192 DestroyDownloadFile(&download_file_, 0); 192 DestroyDownloadFile(&download_file_, 0);
193 } 193 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/download/save_package_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698