HomeSort by relevance Sort by last modified time
    Searched refs:highlighted_text (Results 1 - 3 of 3) sorted by null

  /external/chromium_org/chrome/browser/chromeos/drive/
search_metadata_unittest.cc 32 std::string* highlighted_text) {
35 return FindAndHighlight(text, &query, highlighted_text);
432 std::string highlighted_text; local
433 EXPECT_FALSE(FindAndHighlightWrapper("text", "query", &highlighted_text));
437 std::string highlighted_text; local
438 EXPECT_FALSE(FindAndHighlightWrapper("", "query", &highlighted_text));
442 std::string highlighted_text; local
443 EXPECT_TRUE(FindAndHighlightWrapper("hello", "hello", &highlighted_text));
444 EXPECT_EQ("<b>hello</b>", highlighted_text);
448 std::string highlighted_text; local
455 std::string highlighted_text; local
462 std::string highlighted_text; local
469 std::string highlighted_text; local
476 std::string highlighted_text; local
482 std::string highlighted_text; local
507 std::string highlighted_text; local
516 std::string highlighted_text; local
522 std::string highlighted_text; local
    [all...]
search_metadata.h 41 // Returns true if |query| is found. |highlighted_text| will have the original
44 // contents of |highlighted_text| will be lost.
48 std::string* highlighted_text);
search_metadata.cc 320 std::string* highlighted_text) {
322 DCHECK(highlighted_text);
323 highlighted_text->clear();
334 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(pre)));
335 highlighted_text->append("<b>");
336 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(match)));
337 highlighted_text->append("</b>");
338 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(post)));

Completed in 47 milliseconds