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

Unified Diff: blimp/common/logging_unittest.cc

Issue 1912983002: Add pretty-printing for SETTINGS messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « blimp/common/logging.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/logging_unittest.cc
diff --git a/blimp/common/logging_unittest.cc b/blimp/common/logging_unittest.cc
index a7f97c58f2b3c8a4a0f1123cb1295b5beeab8fcf..d14f748d64df7c7a4e0e5c357ee97d4b419fe120 100644
--- a/blimp/common/logging_unittest.cc
+++ b/blimp/common/logging_unittest.cc
@@ -228,5 +228,19 @@ TEST_F(LoggingTest, RenderWidget) {
deleted_msg);
}
+TEST_F(LoggingTest, Settings) {
+ BlimpMessage message;
+ message.set_type(BlimpMessage::SETTINGS);
+ message.mutable_settings()
+ ->mutable_engine_settings()
+ ->set_record_whole_document(true);
+ message.mutable_settings()->mutable_engine_settings()->set_client_os_info(
+ "wibble");
+ VerifyLogOutput(
+ "type=SETTINGS subtype=ENGINE_SETTINGS record_whole_document=true "
+ "client_os_info=\"wibble\"",
+ message);
+}
+
} // namespace
} // namespace blimp
« no previous file with comments | « blimp/common/logging.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698