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

Side by Side Diff: components/history/core/test/history_service_test_util.h

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef COMPONENTS_HISTORY_CORE_TEST_HISTORY_SERVICE_TEST_UTIL_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_TEST_HISTORY_SERVICE_TEST_UTIL_H_
6 #define COMPONENTS_HISTORY_CORE_TEST_HISTORY_SERVICE_TEST_UTIL_H_ 6 #define COMPONENTS_HISTORY_CORE_TEST_HISTORY_SERVICE_TEST_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 12
13 namespace base { 13 namespace base {
14 class FilePath; 14 class FilePath;
15 } 15 }
16 16
17 namespace history { 17 namespace history {
18 class HistoryService; 18 class HistoryService;
19 19
20 // Creates a new HistoryService that stores its data in |history_dir|. If 20 // Creates a new HistoryService that stores its data in |history_dir|. If
21 // |create_db| is false, the HistoryService will fail to initialize its 21 // |create_db| is false, the HistoryService will fail to initialize its
22 // database; this is useful for testing error conditions. This method spins the 22 // database; this is useful for testing error conditions. This method spins the
23 // runloop before returning to ensure that any initialization-related tasks are 23 // runloop before returning to ensure that any initialization-related tasks are
24 // run. 24 // run.
25 scoped_ptr<HistoryService> CreateHistoryService( 25 scoped_ptr<HistoryService> CreateHistoryService(
26 const base::FilePath& history_dir, 26 const base::FilePath& history_dir, bool create_db);
27 const std::string& accept_languages,
28 bool create_db);
29 27
30 // Schedules a task on the history backend and runs a nested loop until the task 28 // Schedules a task on the history backend and runs a nested loop until the task
31 // is processed. This blocks the caller until the history service processes all 29 // is processed. This blocks the caller until the history service processes all
32 // pending requests. 30 // pending requests.
33 void BlockUntilHistoryProcessesPendingRequests( 31 void BlockUntilHistoryProcessesPendingRequests(
34 HistoryService* history_service); 32 HistoryService* history_service);
35 33
36 } // namespace history 34 } // namespace history
37 35
38 #endif // COMPONENTS_HISTORY_CORE_TEST_HISTORY_SERVICE_TEST_UTIL_H_ 36 #endif // COMPONENTS_HISTORY_CORE_TEST_HISTORY_SERVICE_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698