Home | History | Annotate | Download | only in test_runner

Lines Matching refs:TestRunnerBindings

129 class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> {
137 explicit TestRunnerBindings(
139 virtual ~TestRunnerBindings();
300 DISALLOW_COPY_AND_ASSIGN(TestRunnerBindings);
303 gin::WrapperInfo TestRunnerBindings::kWrapperInfo = {
307 void TestRunnerBindings::Install(base::WeakPtr<TestRunner> runner,
317 gin::Handle<TestRunnerBindings> bindings =
318 gin::CreateHandle(isolate, new TestRunnerBindings(runner));
327 TestRunnerBindings::TestRunnerBindings(base::WeakPtr<TestRunner> runner)
330 TestRunnerBindings::~TestRunnerBindings() {}
332 gin::ObjectTemplateBuilder TestRunnerBindings::GetObjectTemplateBuilder(
334 return gin::Wrappable<TestRunnerBindings>::GetObjectTemplateBuilder(isolate)
336 .SetMethod("logToStderr", &TestRunnerBindings::LogToStderr)
337 .SetMethod("notifyDone", &TestRunnerBindings::NotifyDone)
338 .SetMethod("waitUntilDone", &TestRunnerBindings::WaitUntilDone)
340 &TestRunnerBindings::QueueBackNavigation)
342 &TestRunnerBindings::QueueForwardNavigation)
343 .SetMethod("queueReload", &TestRunnerBindings::QueueReload)
344 .SetMethod("queueLoadingScript", &TestRunnerBindings::QueueLoadingScript)
346 &TestRunnerBindings::QueueNonLoadingScript)
347 .SetMethod("queueLoad", &TestRunnerBindings::QueueLoad)
349 &TestRunnerBindings::QueueLoadHTMLString)
351 &TestRunnerBindings::SetCustomPolicyDelegate)
353 &TestRunnerBindings::WaitForPolicyDelegate)
354 .SetMethod("windowCount", &TestRunnerBindings::WindowCount)
356 &TestRunnerBindings::SetCloseRemainingWindowsWhenComplete)
358 &TestRunnerBindings::ResetTestHelperControllers)
360 &TestRunnerBindings::SetTabKeyCyclesThroughElements)
361 .SetMethod("execCommand", &TestRunnerBindings::ExecCommand)
362 .SetMethod("isCommandEnabled", &TestRunnerBindings::IsCommandEnabled)
364 &TestRunnerBindings::CallShouldCloseOnWebView)
366 &TestRunnerBindings::SetDomainRelaxationForbiddenForURLScheme)
369 &TestRunnerBindings::EvaluateScriptInIsolatedWorldAndReturnValue)
371 &TestRunnerBindings::EvaluateScriptInIsolatedWorld)
373 &TestRunnerBindings::SetIsolatedWorldSecurityOrigin)
375 &TestRunnerBindings::SetIsolatedWorldContentSecurityPolicy)
377 &TestRunnerBindings::AddOriginAccessWhitelistEntry)
379 &TestRunnerBindings::RemoveOriginAccessWhitelistEntry)
381 &TestRunnerBindings
383 &TestRunnerBindings::ForceRedSelectionColors)
384 .SetMethod("injectStyleSheet", &TestRunnerBindings::InjectStyleSheet)
385 .SetMethod("findString", &TestRunnerBindings::FindString)
386 .SetMethod("selectionAsMarkup", &TestRunnerBindings::SelectionAsMarkup)
388 &TestRunnerBindings::SetTextSubpixelPositioning)
389 .SetMethod("setPageVisibility", &TestRunnerBindings::SetPageVisibility)
390 .SetMethod("setTextDirection", &TestRunnerBindings::SetTextDirection)
392 &TestRunnerBindings::UseUnfortunateSynchronousResizeMode)
394 &TestRunnerBindings::EnableAutoResizeMode)
396 &TestRunnerBindings::DisableAutoResizeMode)
398 &TestRunnerBindings::SetMockDeviceMotion)
400 &TestRunnerBindings::SetMockDeviceOrientation)
402 &TestRunnerBindings::SetMockScreenOrientation)
404 &TestRunnerBindings::DidChangeBatteryStatus)
406 &TestRunnerBindings::ResetBatteryStatus)
408 &TestRunnerBindings::DidAcquirePointerLock)
410 &TestRunnerBindings::DidNotAcquirePointerLock)
411 .SetMethod("didLosePointerLock", &TestRunnerBindings::DidLosePointerLock)
413 &TestRunnerBindings::SetPointerLockWillFailSynchronously)
415 &TestRunnerBindings::SetPointerLockWillRespondAsynchronously)
417 &TestRunnerBindings::SetPopupBlockingEnabled)
419 &TestRunnerBindings::SetJavaScriptCanAccessClipboard)
421 &TestRunnerBindings::SetXSSAuditorEnabled)
423 &TestRunnerBindings::SetAllowUniversalAccessFromFileURLs)
425 &TestRunnerBindings::SetAllowFileAccessFromFileURLs)
426 .SetMethod("overridePreference", &TestRunnerBindings::OverridePreference)
427 .SetMethod("setAcceptLanguages", &TestRunnerBindings::SetAcceptLanguages)
428 .SetMethod("setPluginsEnabled", &TestRunnerBindings::SetPluginsEnabled)
430 &TestRunnerBindings::DumpEditingCallbacks)
431 .SetMethod("dumpAsMarkup", &TestRunnerBindings::DumpAsMarkup)
432 .SetMethod("dumpAsText", &TestRunnerBindings::DumpAsText)
434 &TestRunnerBindings::DumpAsTextWithPixelResults)
436 &TestRunnerBindings::DumpChildFrameScrollPositions)
438 &TestRunnerBindings::DumpChildFramesAsText)
440 &TestRunnerBindings::DumpChildFramesAsMarkup)
441 .SetMethod("dumpIconChanges", &TestRunnerBindings::DumpIconChanges)
442 .SetMethod("setAudioData", &TestRunnerBindings::SetAudioData)
444 &TestRunnerBindings::DumpFrameLoadCallbacks)
446 &TestRunnerBindings::DumpPingLoaderCallbacks)
448 &TestRunnerBindings::DumpUserGestureInFrameLoadCallbacks)
449 .SetMethod("dumpTitleChanges", &TestRunnerBindings::DumpTitleChanges)
450 .SetMethod("dumpCreateView", &TestRunnerBindings::DumpCreateView)
451 .SetMethod("setCanOpenWindows", &TestRunnerBindings::SetCanOpenWindows)
453 &TestRunnerBindings::DumpResourceLoadCallbacks)
455 &TestRunnerBindings::DumpResourceRequestCallbacks)
457 &TestRunnerBindings::DumpResourceResponseMIMETypes)
458 .SetMethod("setImagesAllowed", &TestRunnerBindings::SetImagesAllowed)
459 .SetMethod("setMediaAllowed", &TestRunnerBindings::SetMediaAllowed)
460 .SetMethod("setScriptsAllowed", &TestRunnerBindings::SetScriptsAllowed)
461 .SetMethod("setStorageAllowed", &TestRunnerBindings::SetStorageAllowed)
462 .SetMethod("setPluginsAllowed", &TestRunnerBindings::SetPluginsAllowed)
464 &TestRunnerBindings::SetAllowDisplayOfInsecureContent)
466 &TestRunnerBindings::SetAllowRunningOfInsecureContent)
468 &TestRunnerBindings::DumpPermissionClientCallbacks)
470 &TestRunnerBindings::DumpWindowStatusChanges)
472 &TestRunnerBindings::DumpProgressFinishedCallback)
474 &TestRunnerBindings::DumpSpellCheckCallbacks)
476 &TestRunnerBindings::DumpBackForwardList)
477 .SetMethod("dumpSelectionRect", &TestRunnerBindings::DumpSelectionRect)
478 .SetMethod("setPrinting", &TestRunnerBindings::SetPrinting)
481 &TestRunnerBindings::SetShouldStayOnPageAfterHandlingBeforeUnload)
483 &TestRunnerBindings::SetWillSendRequestClearHeader)
485 &TestRunnerBindings::DumpResourceRequestPriorities)
486 .SetMethod("setUseMockTheme", &TestRunnerBindings::SetUseMockTheme)
488 &TestRunnerBindings::WaitUntilExternalURLLoad)
489 .SetMethod("showWebInspector", &TestRunnerBindings::ShowWebInspector)
490 .SetMethod("closeWebInspector", &TestRunnerBindings::CloseWebInspector)
491 .SetMethod("isChooserShown", &TestRunnerBindings::IsChooserShown)
493 &TestRunnerBindings::EvaluateInWebInspector)
494 .SetMethod("clearAllDatabases", &TestRunnerBindings::ClearAllDatabases)
495 .SetMethod("setDatabaseQuota", &TestRunnerBindings::SetDatabaseQuota)
497 &TestRunnerBindings::SetAlwaysAcceptCookies)
498 .SetMethod("setWindowIsKey", &TestRunnerBindings::SetWindowIsKey)
500 &TestRunnerBindings::PathToLocalResource)
502 &TestRunnerBindings::SetBackingScaleFactor)
504 &TestRunnerBindings::SetColorProfile)
505 .SetMethod("setPOSIXLocale", &TestRunnerBindings::SetPOSIXLocale)
507 &TestRunnerBindings::SetMIDIAccessorResult)
509 &TestRunnerBindings::SetMIDISysexPermission)
511 &TestRunnerBindings::GrantWebNotificationPermission)
513 &TestRunnerBindings::SimulateWebNotificationClick)
515 &TestRunnerBindings::AddMockSpeechRecognitionResult)
517 &TestRunnerBindings::SetMockSpeechRecognitionError)
519 &TestRunnerBindings::WasMockSpeechRecognitionAborted)
520 .SetMethod("addWebPageOverlay", &TestRunnerBindings::AddWebPageOverlay)
522 &TestRunnerBindings::RemoveWebPageOverlay)
523 .SetMethod("displayAsync", &TestRunnerBindings::DisplayAsync)
524 .SetMethod("displayAsyncThen", &TestRunnerBindings::DisplayAsyncThen)
525 .SetMethod("capturePixelsAsyncThen", &TestRunnerBindings::CapturePixelsAsyncThen)
527 &TestRunnerBindings::SetCustomTextOutput)
529 &TestRunnerBindings::SetViewSourceForFrame)
531 &TestRunnerBindings::setMockPushClientSuccess)
533 &TestRunnerBindings::setMockPushClientError)
537 &TestRunnerBindings::GlobalFlag,
538 &TestRunnerBindings::SetGlobalFlag)
539 .SetProperty("platformName", &TestRunnerBindings::PlatformName)
540 .SetProperty("tooltipText", &TestRunnerBindings::TooltipText)
541 .SetProperty("disableNotifyDone", &TestRunnerBindings::DisableNotifyDone)
544 &TestRunnerBindings::WebHistoryItemCount)
546 &TestRunnerBindings::InterceptPostMessage,
547 &TestRunnerBindings::SetInterceptPostMessage)
550 .SetMethod("dumpDatabaseCallbacks", &TestRunnerBindings::NotImplemented)
551 .SetMethod("setIconDatabaseEnabled", &TestRunnerBindings::NotImplemented)
552 .SetMethod("setScrollbarPolicy", &TestRunnerBindings::NotImplemented)
554 &TestRunnerBindings::NotImplemented)
556 &TestRunnerBindings::NotImplemented)
557 .SetMethod("clearBackForwardList", &TestRunnerBindings::NotImplemented)
558 .SetMethod("keepWebHistory", &TestRunnerBindings::NotImplemented)
560 &TestRunnerBindings::NotImplemented)
561 .SetMethod("setCallCloseOnWebViews", &TestRunnerBindings::NotImplemented)
563 &TestRunnerBindings::NotImplemented)
565 &TestRunnerBindings::NotImplemented)
566 .SetMethod("deleteAllLocalStorage", &TestRunnerBindings::NotImplemented)
568 &TestRunnerBindings::NotImplemented)
569 .SetMethod("originsWithLocalStorage", &TestRunnerBindings::NotImplemented)
571 &TestRunnerBindings::NotImplemented)
573 &TestRunnerBindings::NotImplemented)
574 .SetMethod("syncLocalStorage", &TestRunnerBindings::NotImplemented)
575 .SetMethod("addDisallowedURL", &TestRunnerBindings::NotImplemented)
577 &TestRunnerBindings::NotImplemented)
578 .SetMethod("abortModal", &TestRunnerBindings::NotImplemented)
583 &TestRunnerBindings::DumpWindowStatusChanges);
586 void TestRunnerBindings::LogToStderr(const std::string& output) {
590 void TestRunnerBindings::NotifyDone() {
595 void TestRunnerBindings::WaitUntilDone() {
600 void TestRunnerBindings::QueueBackNavigation(int how_far_back) {
605 void TestRunnerBindings::QueueForwardNavigation(int how_far_forward) {
610 void TestRunnerBindings::QueueReload() {
615 void TestRunnerBindings::QueueLoadingScript(const std::string& script) {
620 void TestRunnerBindings::QueueNonLoadingScript(const std::string& script) {
625 void TestRunnerBindings::QueueLoad(gin::Arguments* args) {
635 void TestRunnerBindings::QueueLoadHTMLString(gin::Arguments* args) {
640 void TestRunnerBindings::SetCustomPolicyDelegate(gin::Arguments* args) {
645 void TestRunnerBindings::WaitForPolicyDelegate() {
650 int TestRunnerBindings::WindowCount() {
656 void TestRunnerBindings::SetCloseRemainingWindowsWhenComplete(
668 void TestRunnerBindings::ResetTestHelperControllers() {
673 void TestRunnerBindings::SetTabKeyCyclesThroughElements(
679 void TestRunnerBindings::ExecCommand(gin::Arguments* args) {
684 bool TestRunnerBindings::IsCommandEnabled(const std::string& command) {
690 bool TestRunnerBindings::CallShouldCloseOnWebView() {
696 void TestRunnerBindings::SetDomainRelaxationForbiddenForURLScheme(
703 TestRunnerBindings::EvaluateScriptInIsolatedWorldAndReturnValue(
711 void TestRunnerBindings::EvaluateScriptInIsolatedWorld(
717 void TestRunnerBindings::SetIsolatedWorldSecurityOrigin(
723 void TestRunnerBindings::SetIsolatedWorldContentSecurityPolicy(
729 void TestRunnerBindings::AddOriginAccessWhitelistEntry(
742 void TestRunnerBindings::RemoveOriginAccessWhitelistEntry(
755 bool TestRunnerBindings::HasCustomPageSizeStyle(int page_index) {
761 void TestRunnerBindings::ForceRedSelectionColors() {
766 void TestRunnerBindings::InjectStyleSheet(const std::string& source_code,
772 bool TestRunnerBindings::FindString(
780 std::string TestRunnerBindings::SelectionAsMarkup() {
786 void TestRunnerBindings::SetTextSubpixelPositioning(bool value) {
791 void TestRunnerBindings::SetPageVisibility(const std::string& new_visibility) {
796 void TestRunnerBindings::SetTextDirection(const std::string& direction_name) {
801 void TestRunnerBindings::UseUnfortunateSynchronousResizeMode() {
806 bool TestRunnerBindings::EnableAutoResizeMode(int min_width,
817 bool TestRunnerBindings::DisableAutoResizeMode(int new_width, int new_height) {
823 void TestRunnerBindings::SetMockDeviceMotion(gin::Arguments* args) {
885 void TestRunnerBindings::SetMockDeviceOrientation(gin::Arguments* args) {
913 void TestRunnerBindings::SetMockScreenOrientation(const std::string& orientation) {
920 void TestRunnerBindings::DidChangeBatteryStatus(bool charging,
930 void TestRunnerBindings::ResetBatteryStatus() {
935 void TestRunnerBindings::DidAcquirePointerLock() {
940 void TestRunnerBindings::DidNotAcquirePointerLock() {
945 void TestRunnerBindings::DidLosePointerLock() {
950 void TestRunnerBindings::SetPointerLockWillFailSynchronously() {
955 void TestRunnerBindings::SetPointerLockWillRespondAsynchronously() {
960 void TestRunnerBindings::SetPopupBlockingEnabled(bool block_popups) {
965 void TestRunnerBindings::SetJavaScriptCanAccessClipboard(bool can_access) {
970 void TestRunnerBindings::SetXSSAuditorEnabled(bool enabled) {
975 void TestRunnerBindings::SetAllowUniversalAccessFromFileURLs(bool allow) {
980 void TestRunnerBindings::SetAllowFileAccessFromFileURLs(bool allow) {
985 void TestRunnerBindings::OverridePreference(const std::string key,
991 void TestRunnerBindings::SetAcceptLanguages(
999 void TestRunnerBindings::SetPluginsEnabled(bool enabled) {
1004 void TestRunnerBindings::DumpEditingCallbacks() {
1009 void TestRunnerBindings::DumpAsMarkup() {
1014 void TestRunnerBindings::DumpAsText() {
1019 void TestRunnerBindings::DumpAsTextWithPixelResults() {
1024 void TestRunnerBindings::DumpChildFrameScrollPositions() {
1029 void TestRunnerBindings::DumpChildFramesAsText() {
1034 void TestRunnerBindings::DumpChildFramesAsMarkup() {
1039 void TestRunnerBindings::DumpIconChanges() {
1044 void TestRunnerBindings::SetAudioData(const gin::ArrayBufferView& view) {
1049 void TestRunnerBindings::DumpFrameLoadCallbacks() {
1054 void TestRunnerBindings::DumpPingLoaderCallbacks() {
1059 void TestRunnerBindings::DumpUserGestureInFrameLoadCallbacks() {
1064 void TestRunnerBindings::DumpTitleChanges() {
1069 void TestRunnerBindings::DumpCreateView() {
1074 void TestRunnerBindings::SetCanOpenWindows() {
1079 void TestRunnerBindings::DumpResourceLoadCallbacks() {
1084 void TestRunnerBindings::DumpResourceRequestCallbacks() {
1089 void TestRunnerBindings::DumpResourceResponseMIMETypes() {
1094 void TestRunnerBindings::SetImagesAllowed(bool allowed) {
1099 void TestRunnerBindings::SetMediaAllowed(bool allowed) {
1104 void TestRunnerBindings::SetScriptsAllowed(bool allowed) {
1109 void TestRunnerBindings::SetStorageAllowed(bool allowed) {
1114 void TestRunnerBindings::SetPluginsAllowed(bool allowed) {
1119 void TestRunnerBindings::SetAllowDisplayOfInsecureContent(bool allowed) {
1124 void TestRunnerBindings::SetAllowRunningOfInsecureContent(bool allowed) {
1129 void TestRunnerBindings::DumpPermissionClientCallbacks() {
1134 void TestRunnerBindings::DumpWindowStatusChanges() {
1139 void TestRunnerBindings::DumpProgressFinishedCallback() {
1144 void TestRunnerBindings::DumpSpellCheckCallbacks() {
1149 void TestRunnerBindings::DumpBackForwardList() {
1154 void TestRunnerBindings::DumpSelectionRect() {
1159 void TestRunnerBindings::SetPrinting() {
1164 void TestRunnerBindings::SetShouldStayOnPageAfterHandlingBeforeUnload(
1170 void TestRunnerBindings::SetWillSendRequestClearHeader(
1176 void TestRunnerBindings::DumpResourceRequestPriorities() {
1181 void TestRunnerBindings::SetUseMockTheme(bool use) {
1186 void TestRunnerBindings::WaitUntilExternalURLLoad() {
1191 void TestRunnerBindings::ShowWebInspector(gin::Arguments* args) {
1201 void TestRunnerBindings::CloseWebInspector() {
1206 bool TestRunnerBindings::IsChooserShown() {
1212 void TestRunnerBindings::EvaluateInWebInspector(int call_id,
1218 void TestRunnerBindings::ClearAllDatabases() {
1223 void TestRunnerBindings::SetDatabaseQuota(int quota) {
1228 void TestRunnerBindings::SetAlwaysAcceptCookies(bool accept) {
1233 void TestRunnerBindings::SetWindowIsKey(bool value) {
1238 std::string TestRunnerBindings::PathToLocalResource(const std::string& path) {
1244 void TestRunnerBindings::SetBackingScaleFactor(
1250 void TestRunnerBindings::SetColorProfile(
1256 void TestRunnerBindings::SetPOSIXLocale(const std::string& locale) {
1261 void TestRunnerBindings::SetMIDIAccessorResult(bool result) {
1266 void TestRunnerBindings::SetMIDISysexPermission(bool value) {
1271 void TestRunnerBindings::GrantWebNotificationPermission(gin::Arguments* args) {
1281 bool TestRunnerBindings::SimulateWebNotificationClick(
1288 void TestRunnerBindings::AddMockSpeechRecognitionResult(
1294 void TestRunnerBindings::SetMockSpeechRecognitionError(
1300 bool TestRunnerBindings::WasMockSpeechRecognitionAborted() {
1306 void TestRunnerBindings::AddWebPageOverlay() {
1311 void TestRunnerBindings::RemoveWebPageOverlay() {
1316 void TestRunnerBindings::DisplayAsync() {
1321 void TestRunnerBindings::DisplayAsyncThen(v8::Handle<v8::Function> callback) {
1326 void TestRunnerBindings::CapturePixelsAsyncThen(
1332 void TestRunnerBindings::SetCustomTextOutput(std::string output) {
1336 void TestRunnerBindings::SetViewSourceForFrame(const std::string& name,
1346 TestRunnerBindings::setMockPushClientSuccess(
1353 void TestRunnerBindings::setMockPushClientError(const std::string& message) {
1359 bool TestRunnerBindings::GlobalFlag() {
1365 void TestRunnerBindings::SetGlobalFlag(bool value) {
1370 std::string TestRunnerBindings::PlatformName() {
1376 std::string TestRunnerBindings::TooltipText() {
1382 bool TestRunnerBindings::DisableNotifyDone() {
1388 int TestRunnerBindings::WebHistoryItemCount() {
1394 bool TestRunnerBindings::InterceptPostMessage() {
1400 void TestRunnerBindings::SetInterceptPostMessage(bool value) {
1405 void TestRunnerBindings::NotImplemented(const gin::Arguments& args) {
1501 TestRunnerBindings::Install(weak_factory_.GetWeakPtr(), frame);