OLD | NEW |
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 "components/drive/chromeos/search_metadata.h" | 5 #include "components/drive/chromeos/search_metadata.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/i18n/string_search.h" | 12 #include "base/i18n/string_search.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "components/drive/chromeos/drive_test_util.h" | 19 #include "components/drive/chromeos/drive_test_util.h" |
20 #include "components/drive/chromeos/fake_free_disk_space_getter.h" | 20 #include "components/drive/chromeos/fake_free_disk_space_getter.h" |
21 #include "components/drive/chromeos/file_cache.h" | 21 #include "components/drive/chromeos/file_cache.h" |
22 #include "components/drive/drive_api_util.h" | 22 #include "components/drive/drive_api_util.h" |
23 #include "components/drive/file_system_core_util.h" | 23 #include "components/drive/file_system_core_util.h" |
24 #include "content/public/test/test_browser_thread_bundle.h" | 24 #include "content/public/test/test_browser_thread_bundle.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 namespace drive { | 27 namespace drive { |
28 namespace internal { | 28 namespace internal { |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 base::UTF8ToUTF16("ing,"))); | 596 base::UTF8ToUTF16("ing,"))); |
597 | 597 |
598 std::string highlighted_text; | 598 std::string highlighted_text; |
599 EXPECT_TRUE( | 599 EXPECT_TRUE( |
600 FindAndHighlight("good morning, hello", queries, &highlighted_text)); | 600 FindAndHighlight("good morning, hello", queries, &highlighted_text)); |
601 EXPECT_EQ("good <b>morning,</b> hello", highlighted_text); | 601 EXPECT_EQ("good <b>morning,</b> hello", highlighted_text); |
602 } | 602 } |
603 | 603 |
604 } // namespace internal | 604 } // namespace internal |
605 } // namespace drive | 605 } // namespace drive |
OLD | NEW |