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

Unified Diff: chrome/browser/task_manager/sampling/shared_sampler.h

Issue 2657393003: Add unit-test for SharedSampler handling of zero-thread processes. (Closed)
Patch Set: Remove anonymous namespace Created 3 years, 10 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager/sampling/shared_sampler.h
diff --git a/chrome/browser/task_manager/sampling/shared_sampler.h b/chrome/browser/task_manager/sampling/shared_sampler.h
index fd6a8c3fbf573ee0d2157f0f354f1445b9fd3b76..217d103342fdee082b4a73364a7175faee427293 100644
--- a/chrome/browser/task_manager/sampling/shared_sampler.h
+++ b/chrome/browser/task_manager/sampling/shared_sampler.h
@@ -62,6 +62,14 @@ class SharedSampler : public base::RefCountedThreadSafe<SharedSampler> {
// second) on the worker thread.
void Refresh(base::ProcessId process_id, int64_t refresh_flags);
+#if defined(OS_WIN)
+ // Specifies a function to use in place of NtQuerySystemInformation.
+ typedef int (*QuerySystemInformationForTest)(unsigned char* buffer,
+ int buffer_size);
+ static void SetQuerySystemInformationForTest(
+ QuerySystemInformationForTest query_system_information);
+#endif // defined(OS_WIN)
+
private:
friend class base::RefCountedThreadSafe<SharedSampler>;
~SharedSampler();
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698