#include "extensions/test/extension_test_message_listener.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "content/public/test/test_utils.h"
#include "extensions/browser/api/test/test_api.h"
#include "extensions/common/extension_id.h"
ExtensionTestMessageListener::ExtensionTestMessageListener(
const std::string& expected_message,
ReplyBehavior reply_behavior)
: … { … }
ExtensionTestMessageListener::ExtensionTestMessageListener(
ReplyBehavior reply_behavior)
: … { … }
ExtensionTestMessageListener::~ExtensionTestMessageListener() { … }
bool ExtensionTestMessageListener::WaitUntilSatisfied() { … }
void ExtensionTestMessageListener::Reply(const std::string& message) { … }
void ExtensionTestMessageListener::Reply(int message) { … }
void ExtensionTestMessageListener::ReplyWithError(const std::string& error) { … }
void ExtensionTestMessageListener::Reset() { … }
bool ExtensionTestMessageListener::OnTestMessage(
extensions::TestSendMessageFunction* function,
const std::string& message) { … }