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

Unified Diff: tools/android/loading/request_track_unittest.py

Issue 2115553002: sandwich: Fixes some failures in request_track.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/android/loading/request_track.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/loading/request_track_unittest.py
diff --git a/tools/android/loading/request_track_unittest.py b/tools/android/loading/request_track_unittest.py
index 64d3e77f1b0e1fea100190148588f5ea8b817244..3f0baeace033c23d125df2bd9f4e78514edcbcb0 100644
--- a/tools/android/loading/request_track_unittest.py
+++ b/tools/android/loading/request_track_unittest.py
@@ -492,6 +492,17 @@ class RequestTrackTestCase(unittest.TestCase):
with self.assertRaises(AssertionError):
self.request_track.Handle('Network.requestWillBeSent', msg)
+ def testIgnoreCompletedDuplicates(self):
+ self.request_track.Handle('Network.requestWillBeSent',
+ RequestTrackTestCase._REQUEST_WILL_BE_SENT)
+ self.request_track.Handle('Network.responseReceived',
+ RequestTrackTestCase._RESPONSE_RECEIVED)
+ self.request_track.Handle('Network.loadingFinished',
+ RequestTrackTestCase._LOADING_FINISHED)
+ # Should not raise an AssertionError.
+ self.request_track.Handle('Network.requestWillBeSent',
+ RequestTrackTestCase._REQUEST_WILL_BE_SENT)
+
def testSequenceOfGeneratedResponse(self):
self.request_track.Handle('Network.requestServedFromCache',
RequestTrackTestCase._SERVED_FROM_CACHE)
« no previous file with comments | « tools/android/loading/request_track.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698