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

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

Issue 102873002: Move GetFileSize, NormalizeFilePath to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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) 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 path, base::Bind(&MHTMLGenerationTest::MHTMLGenerated, this)); 59 path, base::Bind(&MHTMLGenerationTest::MHTMLGenerated, this));
60 60
61 // Block until the MHTML is generated. 61 // Block until the MHTML is generated.
62 RunMessageLoop(); 62 RunMessageLoop();
63 63
64 EXPECT_TRUE(mhtml_generated()); 64 EXPECT_TRUE(mhtml_generated());
65 EXPECT_GT(file_size(), 0); 65 EXPECT_GT(file_size(), 0);
66 66
67 // Make sure the actual generated file has some contents. 67 // Make sure the actual generated file has some contents.
68 int64 file_size; 68 int64 file_size;
69 ASSERT_TRUE(file_util::GetFileSize(path, &file_size)); 69 ASSERT_TRUE(base::GetFileSize(path, &file_size));
70 EXPECT_GT(file_size, 100); 70 EXPECT_GT(file_size, 100);
71 } 71 }
72 72
73 } // namespace content 73 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_file_unittest.cc ('k') | content/browser/fileapi/obfuscated_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698