This source file includes following definitions.
- AddGuest
- WaitForGuestAdded
#include "content/browser/browser_plugin/test_browser_plugin_guest_manager.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/test/test_utils.h"
namespace content {
TestBrowserPluginGuestManager::TestBrowserPluginGuestManager() {
}
TestBrowserPluginGuestManager::~TestBrowserPluginGuestManager() {
}
void TestBrowserPluginGuestManager::AddGuest(
int instance_id,
WebContentsImpl* guest_web_contents) {
BrowserPluginGuestManager::AddGuest(instance_id, guest_web_contents);
if (message_loop_runner_.get())
message_loop_runner_->Quit();
}
void TestBrowserPluginGuestManager::WaitForGuestAdded() {
if (guest_web_contents_by_instance_id_.size() > 0)
return;
message_loop_runner_ = new MessageLoopRunner();
message_loop_runner_->Run();
}
}