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

Unified Diff: chrome/browser/metrics/metrics_service_unittest.cc

Issue 8501005: Include PPAPI plugin crashes in the plugin crash data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include PPAPI plugin crash info the plugin crash elements on all platforms. Created 9 years, 1 month 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/metrics/metrics_service.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_service_unittest.cc
diff --git a/chrome/browser/metrics/metrics_service_unittest.cc b/chrome/browser/metrics/metrics_service_unittest.cc
index 01263deb89571f8224c0a7829e7a627072247192..bb97bc37059fd61f9943262ee6dad587666e33a5 100644
--- a/chrome/browser/metrics/metrics_service_unittest.cc
+++ b/chrome/browser/metrics/metrics_service_unittest.cc
@@ -28,3 +28,11 @@ TEST(MetricsServiceTest, ClientIdCorrectlyFormatted) {
}
}
+TEST(MetricsServiceTest, IsPluginProcess) {
+ EXPECT_TRUE(
+ MetricsService::IsPluginProcess(ChildProcessInfo::PLUGIN_PROCESS));
+ EXPECT_TRUE(
+ MetricsService::IsPluginProcess(ChildProcessInfo::PPAPI_PLUGIN_PROCESS));
+ EXPECT_FALSE(
+ MetricsService::IsPluginProcess(ChildProcessInfo::GPU_PROCESS));
+}
« no previous file with comments | « chrome/browser/metrics/metrics_service.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698