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

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.h

Issue 2087293003: [DevTools] Network.emulateNetworkConditions now affects NetworkStateNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 void setValueForUser(Element*, const String&); 337 void setValueForUser(Element*, const String&);
338 338
339 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); 339 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength);
340 340
341 void setFocused(bool); 341 void setFocused(bool);
342 void setInitialFocus(bool); 342 void setInitialFocus(bool);
343 343
344 bool ignoreLayoutWithPendingStylesheets(Document*); 344 bool ignoreLayoutWithPendingStylesheets(Document*);
345 345
346 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo or 346 void setNetworkConnectionInfoOverride(bool, const String&, double downlinkMa xMbps, ExceptionState&);
347 // setNetworkStateMaxBandwidth. 347 void clearNetworkConnectionInfoOverride();
348 void setNetworkStateNotifierTestOnly(bool);
349 void setNetworkConnectionInfo(const String&, double downlinkMaxMbps, Excepti onState&);
350 348
351 unsigned countHitRegions(CanvasRenderingContext*); 349 unsigned countHitRegions(CanvasRenderingContext*);
352 350
353 bool isInCanvasFontCache(Document*, const String&); 351 bool isInCanvasFontCache(Document*, const String&);
354 unsigned canvasFontCacheMaxFonts(); 352 unsigned canvasFontCacheMaxFonts();
355 353
356 void setScrollChain(ScrollState*, const HeapVector<Member<Element>>& element s, ExceptionState&); 354 void setScrollChain(ScrollState*, const HeapVector<Member<Element>>& element s, ExceptionState&);
357 355
358 // Schedule a forced Blink GC run (Oilpan) at the end of event loop. 356 // Schedule a forced Blink GC run (Oilpan) at the end of event loop.
359 // Note: This is designed to be only used from PerformanceTests/BlinkGC to e xplicitly measure only Blink GC time. 357 // Note: This is designed to be only used from PerformanceTests/BlinkGC to e xplicitly measure only Blink GC time.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 409
412 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 410 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
413 Member<InternalRuntimeFlags> m_runtimeFlags; 411 Member<InternalRuntimeFlags> m_runtimeFlags;
414 412
415 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 413 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
416 }; 414 };
417 415
418 } // namespace blink 416 } // namespace blink
419 417
420 #endif // Internals_h 418 #endif // Internals_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/NetworkStateNotifierTest.cpp ('k') | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698