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

Side by Side Diff: chrome/browser/diagnostics/diagnostics_model.cc

Issue 2037883004: [Win] Add reporting of total number of modules loaded in browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 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/command_line.h" 10 #include "base/command_line.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/stl_util.h" 14 #include "base/stl_util.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "chrome/browser/diagnostics/diagnostics_test.h" 17 #include "chrome/browser/diagnostics/diagnostics_test.h"
18 #include "chrome/browser/diagnostics/recon_diagnostics.h" 18 #include "chrome/browser/diagnostics/recon_diagnostics.h"
19 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" 19 #include "chrome/browser/diagnostics/sqlite_diagnostics.h"
20 #include "chrome/common/chrome_paths.h" 20 #include "chrome/common/chrome_paths.h"
21 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
22 22
23 namespace diagnostics { 23 namespace diagnostics {
24 24
25 // This is the count of diagnostic tests on each platform. This should 25 // This is the count of diagnostic tests on each platform. This should
26 // only be used by testing code. 26 // only be used by testing code.
27 #if defined(OS_WIN) 27 #if defined(OS_WIN)
28 const int DiagnosticsModel::kDiagnosticsTestCount = 18; 28 const int DiagnosticsModel::kDiagnosticsTestCount = 17;
29 #elif defined(OS_MACOSX) 29 #elif defined(OS_MACOSX)
30 const int DiagnosticsModel::kDiagnosticsTestCount = 14; 30 const int DiagnosticsModel::kDiagnosticsTestCount = 14;
31 #elif defined(OS_POSIX) 31 #elif defined(OS_POSIX)
32 #if defined(OS_CHROMEOS) 32 #if defined(OS_CHROMEOS)
33 const int DiagnosticsModel::kDiagnosticsTestCount = 18; 33 const int DiagnosticsModel::kDiagnosticsTestCount = 18;
34 #else 34 #else
35 const int DiagnosticsModel::kDiagnosticsTestCount = 16; 35 const int DiagnosticsModel::kDiagnosticsTestCount = 16;
36 #endif 36 #endif
37 #endif 37 #endif
38 38
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 DISALLOW_COPY_AND_ASSIGN(DiagnosticsModelImpl); 144 DISALLOW_COPY_AND_ASSIGN(DiagnosticsModelImpl);
145 }; 145 };
146 146
147 // Each platform can have their own tests. For the time being there is only 147 // Each platform can have their own tests. For the time being there is only
148 // one test that works on all platforms. 148 // one test that works on all platforms.
149 #if defined(OS_WIN) 149 #if defined(OS_WIN)
150 class DiagnosticsModelWin : public DiagnosticsModelImpl { 150 class DiagnosticsModelWin : public DiagnosticsModelImpl {
151 public: 151 public:
152 DiagnosticsModelWin() { 152 DiagnosticsModelWin() {
153 tests_.push_back(MakeOperatingSystemTest()); 153 tests_.push_back(MakeOperatingSystemTest());
154 tests_.push_back(MakeConflictingDllsTest());
155 tests_.push_back(MakeInstallTypeTest()); 154 tests_.push_back(MakeInstallTypeTest());
156 tests_.push_back(MakeVersionTest()); 155 tests_.push_back(MakeVersionTest());
157 tests_.push_back(MakeUserDirTest()); 156 tests_.push_back(MakeUserDirTest());
158 tests_.push_back(MakeLocalStateFileTest()); 157 tests_.push_back(MakeLocalStateFileTest());
159 tests_.push_back(MakeDictonaryDirTest()); 158 tests_.push_back(MakeDictonaryDirTest());
160 tests_.push_back(MakeResourcesFileTest()); 159 tests_.push_back(MakeResourcesFileTest());
161 tests_.push_back(MakeDiskSpaceTest()); 160 tests_.push_back(MakeDiskSpaceTest());
162 tests_.push_back(MakePreferencesTest()); 161 tests_.push_back(MakePreferencesTest());
163 tests_.push_back(MakeLocalStateTest()); 162 tests_.push_back(MakeLocalStateTest());
164 tests_.push_back(MakeBookMarksTest()); 163 tests_.push_back(MakeBookMarksTest());
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 #if defined(OS_WIN) 239 #if defined(OS_WIN)
241 return new DiagnosticsModelWin(); 240 return new DiagnosticsModelWin();
242 #elif defined(OS_MACOSX) 241 #elif defined(OS_MACOSX)
243 return new DiagnosticsModelMac(); 242 return new DiagnosticsModelMac();
244 #elif defined(OS_POSIX) 243 #elif defined(OS_POSIX)
245 return new DiagnosticsModelPosix(); 244 return new DiagnosticsModelPosix();
246 #endif 245 #endif
247 } 246 }
248 247
249 } // namespace diagnostics 248 } // namespace diagnostics
OLDNEW
« no previous file with comments | « chrome/browser/chrome_notification_types.h ('k') | chrome/browser/diagnostics/recon_diagnostics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698