OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/diagnostics/diagnostics_model.h" | 5 #include "chrome/browser/diagnostics/diagnostics_model.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 DISALLOW_COPY_AND_ASSIGN(DiagnosticsModelImpl); | 76 DISALLOW_COPY_AND_ASSIGN(DiagnosticsModelImpl); |
77 }; | 77 }; |
78 | 78 |
79 // Each platform can have their own tests. For the time being there is only | 79 // Each platform can have their own tests. For the time being there is only |
80 // one test that works on all platforms. | 80 // one test that works on all platforms. |
81 #if defined(OS_WIN) | 81 #if defined(OS_WIN) |
82 class DiagnosticsModelWin : public DiagnosticsModelImpl { | 82 class DiagnosticsModelWin : public DiagnosticsModelImpl { |
83 public: | 83 public: |
84 DiagnosticsModelWin() { | 84 DiagnosticsModelWin() { |
85 tests_.push_back(MakeOperatingSystemTest()); | 85 tests_.push_back(MakeOperatingSystemTest()); |
| 86 tests_.push_back(MakeConflictingDllsTest()); |
86 tests_.push_back(MakeInstallTypeTest()); | 87 tests_.push_back(MakeInstallTypeTest()); |
87 tests_.push_back(MakeVersionTest()); | 88 tests_.push_back(MakeVersionTest()); |
88 tests_.push_back(MakeUserDirTest()); | 89 tests_.push_back(MakeUserDirTest()); |
89 tests_.push_back(MakeLocalStateFileTest()); | 90 tests_.push_back(MakeLocalStateFileTest()); |
90 tests_.push_back(MakeDictonaryDirTest()); | 91 tests_.push_back(MakeDictonaryDirTest()); |
91 tests_.push_back(MakeInspectorDirTest()); | 92 tests_.push_back(MakeInspectorDirTest()); |
92 tests_.push_back(MakeDiskSpaceTest()); | 93 tests_.push_back(MakeDiskSpaceTest()); |
93 tests_.push_back(MakePreferencesTest()); | 94 tests_.push_back(MakePreferencesTest()); |
94 tests_.push_back(MakeLocalStateTest()); | 95 tests_.push_back(MakeLocalStateTest()); |
95 tests_.push_back(MakeBookMarksTest()); | 96 tests_.push_back(MakeBookMarksTest()); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 if (!user_data_dir.empty()) | 169 if (!user_data_dir.empty()) |
169 PathService::Override(chrome::DIR_USER_DATA, user_data_dir); | 170 PathService::Override(chrome::DIR_USER_DATA, user_data_dir); |
170 #if defined(OS_WIN) | 171 #if defined(OS_WIN) |
171 return new DiagnosticsModelWin(); | 172 return new DiagnosticsModelWin(); |
172 #elif defined(OS_MACOSX) | 173 #elif defined(OS_MACOSX) |
173 return new DiagnosticsModelMac(); | 174 return new DiagnosticsModelMac(); |
174 #elif defined(OS_POSIX) | 175 #elif defined(OS_POSIX) |
175 return new DiagnosticsModelPosix(); | 176 return new DiagnosticsModelPosix(); |
176 #endif | 177 #endif |
177 } | 178 } |
OLD | NEW |