summaryrefslogtreecommitdiffstats
path: root/base/file_util_unittest.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-11 22:53:43 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-11 22:53:43 +0000
commita04876b90cb1e55881844ff22a74e06bf4641071 (patch)
tree2188de20f7b57b371c045232e1b888bc676afaf6 /base/file_util_unittest.cc
parent88fdf6604b4136a8d914703a10869951f846d3c1 (diff)
downloadchromium_src-a04876b90cb1e55881844ff22a74e06bf4641071.zip
chromium_src-a04876b90cb1e55881844ff22a74e06bf4641071.tar.gz
chromium_src-a04876b90cb1e55881844ff22a74e06bf4641071.tar.bz2
Add histograms to track the size of the profile data.
BUG=16705 TEST=FileUtilTest.FileAndDirectorySize Review URL: http://codereview.chromium.org/2778006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49606 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_unittest.cc')
-rw-r--r--base/file_util_unittest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc
index 219b63d..39e5398 100644
--- a/base/file_util_unittest.cc
+++ b/base/file_util_unittest.cc
@@ -463,6 +463,12 @@ TEST_F(FileUtilTest, FileAndDirectorySize) {
int64 computed_size = file_util::ComputeDirectorySize(test_dir_);
EXPECT_EQ(size_f1 + size_f2 + 3, computed_size);
+
+ computed_size = file_util::ComputeFilesSize(test_dir_, FPL("The file*"));
+ EXPECT_EQ(size_f1, computed_size);
+
+ computed_size = file_util::ComputeFilesSize(test_dir_, FPL("bla*"));
+ EXPECT_EQ(0, computed_size);
}
TEST_F(FileUtilTest, NormalizeFilePathBasic) {