Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Side by Side Diff: components/test_runner/test_runner_for_specific_view.cc

Issue 2085153002: Adjust test expectations for infinite-size images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small refactor Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/test_runner/test_runner_for_specific_view.h" 5 #include "components/test_runner/test_runner_for_specific_view.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <limits> 8 #include <limits>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 void TestRunnerForSpecificView::SendBluetoothManualChooserEvent( 361 void TestRunnerForSpecificView::SendBluetoothManualChooserEvent(
362 const std::string& event, 362 const std::string& event,
363 const std::string& argument) { 363 const std::string& argument) {
364 delegate()->SendBluetoothManualChooserEvent(event, argument); 364 delegate()->SendBluetoothManualChooserEvent(event, argument);
365 } 365 }
366 366
367 void TestRunnerForSpecificView::SetBackingScaleFactor( 367 void TestRunnerForSpecificView::SetBackingScaleFactor(
368 double value, 368 double value,
369 v8::Local<v8::Function> callback) { 369 v8::Local<v8::Function> callback) {
370 delegate()->SetDeviceScaleFactor(value); 370 delegate()->SetDeviceScaleFactor(value);
371 PostV8Callback(callback); 371
372 // TODO(oshima): remove this callback argument when all platforms are migrated
373 // to use-zoom-for-dsf by default
374 v8::UniquePersistent<v8::Function> global_callback(blink::mainThreadIsolate(),
375 callback);
376 v8::Local<v8::Value> arg = v8::Boolean::New(
377 blink::mainThreadIsolate(), delegate()->IsUseZoomForDSFEnabled());
378 PostV8CallbackWithArgs(std::move(global_callback), 1, &arg);
372 } 379 }
373 380
374 void TestRunnerForSpecificView::EnableUseZoomForDSF( 381 void TestRunnerForSpecificView::EnableUseZoomForDSF(
375 v8::Local<v8::Function> callback) { 382 v8::Local<v8::Function> callback) {
376 delegate()->EnableUseZoomForDSF(); 383 delegate()->EnableUseZoomForDSF();
377 PostV8Callback(callback); 384 PostV8Callback(callback);
378 } 385 }
379 386
380 void TestRunnerForSpecificView::SetColorProfile( 387 void TestRunnerForSpecificView::SetColorProfile(
381 const std::string& name, 388 const std::string& name,
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 684
678 blink::WebView* TestRunnerForSpecificView::web_view() { 685 blink::WebView* TestRunnerForSpecificView::web_view() {
679 return web_test_proxy_base_->web_view(); 686 return web_test_proxy_base_->web_view();
680 } 687 }
681 688
682 WebTestDelegate* TestRunnerForSpecificView::delegate() { 689 WebTestDelegate* TestRunnerForSpecificView::delegate() {
683 return web_test_proxy_base_->delegate(); 690 return web_test_proxy_base_->delegate();
684 } 691 }
685 692
686 } // namespace test_runner 693 } // namespace test_runner
OLDNEW
« no previous file with comments | « no previous file | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698