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

Unified Diff: chrome/browser/task_profiler/task_profiler_data_serializer_unittest.cc

Issue 12662019: Split the ProcessType enum into process types that content knows about (which will remain in src\co… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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
Index: chrome/browser/task_profiler/task_profiler_data_serializer_unittest.cc
===================================================================
--- chrome/browser/task_profiler/task_profiler_data_serializer_unittest.cc (revision 189692)
+++ chrome/browser/task_profiler/task_profiler_data_serializer_unittest.cc (working copy)
@@ -22,7 +22,7 @@
void ExpectSerialization(
const tracked_objects::ProcessDataSnapshot& process_data,
- content::ProcessType process_type,
+ int process_type,
const std::string& expected_json) {
base::DictionaryValue serialized_value;
task_profiler::TaskProfilerDataSerializer::ToValue(
@@ -41,7 +41,7 @@
{
// Empty data.
tracked_objects::ProcessDataSnapshot process_data;
- content::ProcessType process_type = content::PROCESS_TYPE_BROWSER;
+ int process_type = content::PROCESS_TYPE_BROWSER;
ExpectSerialization(process_data, process_type,
"{"
"\"descendants\":["
@@ -100,7 +100,7 @@
process_data.descendants.back().parent = parent;
process_data.descendants.back().child = child;
- content::ProcessType process_type = content::PROCESS_TYPE_RENDERER;
+ int process_type = content::PROCESS_TYPE_RENDERER;
ExpectSerialization(process_data, process_type,
"{"
"\"descendants\":["

Powered by Google App Engine
This is Rietveld 408576698