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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesTest.java

Issue 2770533002: [EXAMPLE] testHamcrestContains working properly (Closed)
Patch Set: Created 3 years, 9 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 | « chrome/android/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesTest.java
index c119089c4fb233f2e57a3cc3f8aedb5119f8d4f0..d797d709939b92a521681db3b8a9515ca850143a 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesTest.java
@@ -4,6 +4,9 @@
package org.chromium.chrome.browser.preferences.privacy;
+import static org.hamcrest.Matchers.containsString;
+import static org.junit.Assert.assertThat;
+
import android.content.Intent;
import android.os.AsyncTask;
import android.preference.CheckBoxPreference;
@@ -83,6 +86,11 @@ public class ClearBrowsingDataPreferencesTest
});
}
+ @SmallTest
+ public void testHamcrestContains() {
+ assertThat("foobar", containsString("foo"));
+ }
+
/**
* Tests that web apps are cleared when the "cookies and site data" option is selected.
*/
« no previous file with comments | « chrome/android/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698