19 #ifndef PAGESPEED_KERNEL_BASE_MOCK_MESSAGE_HANDLER_H_
20 #define PAGESPEED_KERNEL_BASE_MOCK_MESSAGE_HANDLER_H_
32 namespace net_instaweb {
74 virtual void FileMessageSImpl(MessageType type,
const char* filename,
79 bool ShouldPrintMessage(
const StringPiece& msg);
82 typedef std::map<MessageType, int> MessageCountMap;
85 int TotalMessagesImpl(
const MessageCountMap& counts)
const;
86 int MessagesOfTypeImpl(
const MessageCountMap& counts,
87 MessageType type)
const;
90 MessageCountMap message_counts_;
91 MessageCountMap skipped_message_counts_;
Definition: fast_wildcard_group.h:94
MockMessageHandler(AbstractMutex *mutex)
Takes ownership of the mutex.
virtual bool Dump(Writer *writer)
Dumps contents of String Buffer.
void set_mutex(AbstractMutex *mutex)
Takes ownership of the mutex.
int SeriousMessages() const
Returns number of messages of severity higher than info.
Abstract interface for implementing a mutex.
Definition: abstract_mutex.h:28
int SkippedMessagesOfType(MessageType type) const
Returns number of messages which are not printed.
int TotalSkippedMessages() const
Returns total number of messages which are not printed.
int TotalMessages() const
Returns total number of messages issued.
Definition: mock_message_handler.h:39
Definition: scoped_ptr.h:30
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual void MessageSImpl(MessageType type, const GoogleString &message)
Interface for writing bytes to an output stream.
Definition: writer.h:29
int MessagesOfType(MessageType type) const
Returns number of messages of given type issued.
Definition: message_handler.h:39
void AddPatternToSkipPrinting(const char *pattern)
Definition: google_message_handler.h:35