New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 791910 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Mar 2018
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Navigation simulator in unit tests depends on base::Time

Reported by bpie...@opera.com, Dec 5 2017

Issue description

OS: (Win)

Currently item_sequence_number and document_sequence_number (set in NavigationSimulator::Commit) depends on base::Time for example in OverscrollNavigationOverlay unit tests and in low resolution timer cases it leads to tests failure. 

params.item_sequence_number = base::Time::Now().ToDoubleT() * 1000000;
params.document_sequence_number = params.item_sequence_number + 1;


As discussed in https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/yCVsKLmGtfM

We should change it to simple counter.

 

Comment 1 by bpie...@opera.com, Dec 5 2017

Owner: bpie...@opera.com

Comment 2 by bpie...@opera.com, Dec 5 2017

Status: Assigned (was: Untriaged)
Project Member

Comment 3 by bugdroid1@chromium.org, Mar 7 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3cb48b3063ee8665161fd9126ba8cf8418e3510d

commit 3cb48b3063ee8665161fd9126ba8cf8418e3510d
Author: Bartosz Piekny <bpiekny@opera.com>
Date: Wed Mar 07 08:46:36 2018

Remove time dependency from NavigationSimulator

This commit solves issues related to low resolution timers in
content_unittests.

Bug:  791910 
Change-Id: If572f967034354ab3d1261c4a576736bc7ba9ac5
Reviewed-on: https://chromium-review.googlesource.com/808586
Reviewed-by: Camille Lamy <clamy@chromium.org>
Commit-Queue: Bartosz Piękny <bpiekny@opera.com>
Cr-Commit-Position: refs/heads/master@{#541386}
[modify] https://crrev.com/3cb48b3063ee8665161fd9126ba8cf8418e3510d/content/public/test/navigation_simulator.cc

Comment 4 by bpie...@opera.com, Mar 7 2018

Status: Fixed (was: Assigned)

Sign in to add a comment