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

Unified Diff: blimp/net/test_common.h

Issue 1970463004: Blimp: Add BlobChannel Helium messages and delegate impls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: haibinlu feedback Created 4 years, 7 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: blimp/net/test_common.h
diff --git a/blimp/net/test_common.h b/blimp/net/test_common.h
index 5aaae7eee0a4ca44246d37994afb85b5358fa6aa..c726feba5a8c2645cf72d5f2d4e59f95fba64786 100644
--- a/blimp/net/test_common.h
+++ b/blimp/net/test_common.h
@@ -60,6 +60,11 @@ MATCHER_P(BufferEqualsProto, message, "") {
return expected_serialized == actual_serialized;
}
+// Checks if the contents of a BlobDataPtr match the string |expected|.
+MATCHER_P(BlobDataPtrEqualsString, expected, "") {
+ return expected == arg->data;
+}
+
// GMock action that writes data from a string to an IOBuffer.
//
// buf_idx (template parameter 0): 0-based index of the IOBuffer arg.

Powered by Google App Engine
This is Rietveld 408576698