⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243222 in webkit


Ignore:
Timestamp:
Mar 20, 2019, 12:01:32 PM (7 years ago)
Author:
wilander@apple.com
Message:

(Test fix) Override minimumTimeBetweenDataRecordsRemoval in ResourceLoadStatisticsStore::shouldRemoveDataRecord() during layout tests
https://bugs.webkit.org/show_bug.cgi?id=196017

Unreviewed test fix.

This patch adds a check of parameters().isRunningTest to the return of
ResourceLoadStatisticsStore::shouldRemoveDataRecord() to allow successive
layout tests to remove website data, effectively overriding the
minimumTimeBetweenDataRecordsRemoval setting.

  • NetworkProcess/Classifier/ResourceLoadStatisticsStore.cpp:

(WebKit::ResourceLoadStatisticsStore::shouldRemoveDataRecords const):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r243221 r243222  
     12019-03-20  John Wilander  <wilander@apple.com>
     2
     3        (Test fix) Override minimumTimeBetweenDataRecordsRemoval in ResourceLoadStatisticsStore::shouldRemoveDataRecord() during layout tests
     4        https://bugs.webkit.org/show_bug.cgi?id=196017
     5
     6        Unreviewed test fix.
     7
     8        This patch adds a check of parameters().isRunningTest to the return of
     9        ResourceLoadStatisticsStore::shouldRemoveDataRecord() to allow successive
     10        layout tests to remove website data, effectively overriding the
     11        minimumTimeBetweenDataRecordsRemoval setting.
     12
     13        * NetworkProcess/Classifier/ResourceLoadStatisticsStore.cpp:
     14        (WebKit::ResourceLoadStatisticsStore::shouldRemoveDataRecords const):
     15
    1162019-03-20  Daniel Bates  <dabates@apple.com>
    217
  • trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.cpp

    r243181 r243222  
    407407#endif
    408408
    409     return !m_lastTimeDataRecordsWereRemoved || MonotonicTime::now() >= (m_lastTimeDataRecordsWereRemoved + m_parameters.minimumTimeBetweenDataRecordsRemoval);
     409    return !m_lastTimeDataRecordsWereRemoved || MonotonicTime::now() >= (m_lastTimeDataRecordsWereRemoved + m_parameters.minimumTimeBetweenDataRecordsRemoval) || parameters().isRunningTest;
    410410}
    411411
Note: See TracChangeset for help on using the changeset viewer.