diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-03 19:53:17 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-03 19:53:17 +0000 |
commit | ad5bed303a4c4c760c52f14c2e2585a59e9a8935 (patch) | |
tree | ab8a36f33f52b0c5fc0dc1cd95b817530d6ea48a /chrome/browser/fragmentation_checker_unittest_win.cc | |
parent | 8932f44f203b0ac1d47199e08862009b1c66cdf9 (diff) | |
download | chromium_src-ad5bed303a4c4c760c52f14c2e2585a59e9a8935.zip chromium_src-ad5bed303a4c4c760c52f14c2e2585a59e9a8935.tar.gz chromium_src-ad5bed303a4c4c760c52f14c2e2585a59e9a8935.tar.bz2 |
Revert 103760 (broke build) - Add a metric to Chrome to measure fragmentation of chrome.dll at startup.
BUG=98033
TEST=None
Review URL: http://codereview.chromium.org/8085026
TBR=robertshield@chromium.org
Review URL: http://codereview.chromium.org/8120006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103762 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/fragmentation_checker_unittest_win.cc')
-rw-r--r-- | chrome/browser/fragmentation_checker_unittest_win.cc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/chrome/browser/fragmentation_checker_unittest_win.cc b/chrome/browser/fragmentation_checker_unittest_win.cc deleted file mode 100644 index c778d76..0000000 --- a/chrome/browser/fragmentation_checker_unittest_win.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "base/file_path.h" -#include "base/path_service.h" -#include "chrome/browser/fragmentation_checker_win.h" -#include "chrome/common/guid.h" -#include "testing/gtest/include/gtest/gtest.h" - -TEST(FragmentationChecker, BasicCheck) { - FilePath module_path; - ASSERT_TRUE(PathService::Get(base::FILE_MODULE, &module_path)); - int extent_count = fragmentation_checker::CountFileExtents(module_path); - EXPECT_GT(extent_count, 0); -} - -TEST(FragmentationChecker, InvalidFile) { - FilePath module_path; - ASSERT_TRUE(PathService::Get(base::FILE_MODULE, &module_path)); - module_path = module_path.DirName().AppendASCII(guid::GenerateGUID()); - int extent_count = fragmentation_checker::CountFileExtents(module_path); - EXPECT_EQ(extent_count, 0); -} |