summaryrefslogtreecommitdiffstats
path: root/chrome/browser/fragmentation_checker_unittest_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/fragmentation_checker_unittest_win.cc')
-rw-r--r--chrome/browser/fragmentation_checker_unittest_win.cc24
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);
-}