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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/IntentHandlerTest.java

Issue 2392763002: Sanitize unparcable intents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 2 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
Index: chrome/android/javatests/src/org/chromium/chrome/browser/IntentHandlerTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/IntentHandlerTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/IntentHandlerTest.java
index 38658cb5a160859c3f5a645900ff9b05ee91078b..4023a8b2ec472aea29192da482b969d3850c7056 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/IntentHandlerTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/IntentHandlerTest.java
@@ -292,7 +292,7 @@ public class IntentHandlerTest extends NativeLibraryTestBase {
// Check both before and after to make sure that the returned value is
// really from {@link SystemClock#elapsedRealtime()}.
long before = SystemClock.elapsedRealtime();
- IntentHandler.addTimestampToIntent(intent);
+ intent = IntentHandler.addTimestampToIntent(intent);
long after = SystemClock.elapsedRealtime();
assertTrue("Time should be increasing",
before <= IntentHandler.getTimestampFromIntent(intent));

Powered by Google App Engine
This is Rietveld 408576698