summaryrefslogtreecommitdiffstats
path: root/chrome/browser/diagnostics/diagnostics_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/diagnostics/diagnostics_test.h')
-rw-r--r--chrome/browser/diagnostics/diagnostics_test.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/chrome/browser/diagnostics/diagnostics_test.h b/chrome/browser/diagnostics/diagnostics_test.h
index d0a0947..9fdc45e 100644
--- a/chrome/browser/diagnostics/diagnostics_test.h
+++ b/chrome/browser/diagnostics/diagnostics_test.h
@@ -1,12 +1,16 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
#ifndef CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_TEST_H_
#define CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_TEST_H_
+#include "base/file_path.h"
+#include "base/path_service.h"
#include "base/string16.h"
#include "chrome/browser/diagnostics/diagnostics_model.h"
+#include "chrome/common/chrome_constants.h"
+#include "chrome/common/chrome_paths.h"
// Represents a single diagnostic test and encapsulates the common
// functionality across platforms as well.
@@ -68,6 +72,13 @@ class DiagnosticTest : public DiagnosticsModel::TestInfo {
result_ = result;
}
+ FilePath GetUserDefaultProfileDir() {
+ FilePath path;
+ if (!PathService::Get(chrome::DIR_USER_DATA, &path))
+ return FilePath();
+ return path.Append(FilePath::FromWStringHack(chrome::kNotSignedInProfile));
+ }
+
protected:
// The id needs to be overriden by derived classes and must uniquely
// identify this test so other test can refer to it.