// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_LOG_H_ #define CHROME_TEST_CHROMEDRIVER_CHROME_LOG_H_ #include <string> #include "base/time/time.h" namespace base { class Value; } IsVLogOnFunc; // Abstract class for logging entries with a level, timestamp, string message. class Log { … }; // Returns whether the given VLOG level is on. bool IsVLogOn(int vlog_level); bool TruncateLoggedParams(); std::string PrettyPrintValue(const base::Value& value); // Returns a pretty printed value, after truncating long strings. std::string FormatValueForDisplay(const base::Value& value); // Returns a pretty printed json string, after truncating long strings. std::string FormatJsonForDisplay(const std::string& json); #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LOG_H_