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

Unified Diff: chrome/browser/fragmentation_checker_unittest_win.cc

Issue 8085026: Add a metric to Chrome to measure fragmentation of chrome.dll at startup.BUG=98033TEST=None (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/fragmentation_checker_unittest_win.cc
===================================================================
--- chrome/browser/fragmentation_checker_unittest_win.cc (revision 0)
+++ chrome/browser/fragmentation_checker_unittest_win.cc (revision 0)
@@ -0,0 +1,16 @@
+// 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 "chrome/browser/fragmentation_checker_win.h"
grt (UTC plus 2) 2011/10/01 02:49:46 shouldn't this be in-order with the other headers?
robertshield 2011/10/01 05:00:41 Done.
+
+#include "base/path_service.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+TEST(FragmentationChecker, BasicCheck) {
+ FilePath module_path;
+ ASSERT_TRUE(PathService::Get(base::FILE_MODULE, &module_path));
+ uint32 extent_count = 0;
+ fragmentation_checker::CountFileExtents(module_path, &extent_count);
+ EXPECT_GT(extent_count, 0u);
+}
Property changes on: chrome\browser\fragmentation_checker_unittest_win.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698