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

Side by Side Diff: chrome/browser/chromeos/drive/search_metadata_unittest.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/drive/search_metadata.h" 5 #include "chrome/browser/chromeos/drive/search_metadata.h"
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/i18n/string_search.h" 9 #include "base/i18n/string_search.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
14 #include "chrome/browser/chromeos/drive/drive_test_util.h" 14 #include "chrome/browser/chromeos/drive/drive_test_util.h"
15 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" 15 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h"
16 #include "chrome/browser/chromeos/drive/file_cache.h" 16 #include "chrome/browser/chromeos/drive/file_cache.h"
17 #include "chrome/browser/chromeos/drive/file_system_core_util.h" 17 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
18 #include "chrome/browser/drive/drive_api_util.h" 18 #include "components/drive/drive_api_util.h"
19 #include "content/public/test/test_browser_thread_bundle.h" 19 #include "content/public/test/test_browser_thread_bundle.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 namespace drive { 22 namespace drive {
23 namespace internal { 23 namespace internal {
24 24
25 namespace { 25 namespace {
26 26
27 const int kDefaultAtMostNumMatches = 10; 27 const int kDefaultAtMostNumMatches = 10;
28 28
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 } 491 }
492 492
493 TEST(SearchMetadataSimpleTest, FindAndHighlight_MoreMetaChars) { 493 TEST(SearchMetadataSimpleTest, FindAndHighlight_MoreMetaChars) {
494 std::string highlighted_text; 494 std::string highlighted_text;
495 EXPECT_TRUE(FindAndHighlightWrapper("a&b&c&d", "b&c", &highlighted_text)); 495 EXPECT_TRUE(FindAndHighlightWrapper("a&b&c&d", "b&c", &highlighted_text));
496 EXPECT_EQ("a&amp;<b>b&amp;c</b>&amp;d", highlighted_text); 496 EXPECT_EQ("a&amp;<b>b&amp;c</b>&amp;d", highlighted_text);
497 } 497 }
498 498
499 } // namespace internal 499 } // namespace internal
500 } // namespace drive 500 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/search_metadata.cc ('k') | chrome/browser/chromeos/drive/sync/entry_revert_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698