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

Unified Diff: chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc

Issue 2440843002: [Contextual Search] Pipe basic quick action data from C++ to Java (Closed)
Patch Set: [Contextual Search] Pipe basic quick action data from C++ to Java 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/browser/android/contextualsearch/contextual_search_delegate_unittest.cc
diff --git a/chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc b/chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc
index aea2ae1bc1b7b7638ff8cef9c29757b608a27ef8..09746790310bcc8955b2b8287928d7c87d34f1f4 100644
--- a/chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc
+++ b/chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc
@@ -541,10 +541,12 @@ TEST_F(ContextualSearchDelegateTest, DecodeSearchTermFromJsonResponse) {
std::string context_language;
std::string thumbnail_url;
std::string caption;
+ std::string quick_action_uri;
+ std::string quick_action_category;
delegate_->DecodeSearchTermFromJsonResponse(
json_with_escape, &search_term, &display_text, &alternate_term,
&mid, &prevent_preload, &mention_start, &mention_end, &context_language,
- &thumbnail_url, &caption);
+ &thumbnail_url, &caption, &quick_action_uri, &quick_action_category);
EXPECT_EQ("obama", search_term);
EXPECT_EQ("Barack Obama", display_text);
EXPECT_EQ("barack obama", alternate_term);
@@ -553,6 +555,8 @@ TEST_F(ContextualSearchDelegateTest, DecodeSearchTermFromJsonResponse) {
EXPECT_EQ("", context_language);
EXPECT_EQ("", thumbnail_url);
EXPECT_EQ("", caption);
+ EXPECT_EQ("", quick_action_uri);
+ EXPECT_EQ("", quick_action_category);
}
TEST_F(ContextualSearchDelegateTest, ResponseWithLanguage) {

Powered by Google App Engine
This is Rietveld 408576698