Index: third_party/mojo/src/mojo/edk/embedder/process_type.h |
diff --git a/third_party/mojo/src/mojo/edk/embedder/process_type.h b/third_party/mojo/src/mojo/edk/embedder/process_type.h |
index 87292df9ef16925077466aa726348d1fd054cc97..c18c5f58ce104321b390eb8335e5a5cead6b59a3 100644 |
--- a/third_party/mojo/src/mojo/edk/embedder/process_type.h |
+++ b/third_party/mojo/src/mojo/edk/embedder/process_type.h |
@@ -5,6 +5,10 @@ |
#ifndef MOJO_EDK_EMBEDDER_PROCESS_TYPE_H_ |
#define MOJO_EDK_EMBEDDER_PROCESS_TYPE_H_ |
+#include <ostream> |
+ |
+#include "mojo/edk/system/system_impl_export.h" |
+ |
namespace mojo { |
namespace embedder { |
@@ -20,6 +24,13 @@ enum class ProcessType { |
SLAVE, |
}; |
+// So logging macros and |DCHECK_EQ()|, etc. work. |
+MOJO_SYSTEM_IMPL_EXPORT inline std::ostream& operator<<( |
+ std::ostream& out, |
+ ProcessType process_type) { |
+ return out << static_cast<int>(process_type); |
+} |
+ |
} // namespace embedder |
} // namespace mojo |