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

Unified Diff: chrome/browser/ui/app_list/search/history_unittest.cc

Issue 518293002: App-list history cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 6 years, 3 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
« no previous file with comments | « chrome/browser/ui/app_list/search/history_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/search/history_unittest.cc
diff --git a/chrome/browser/ui/app_list/search/history_unittest.cc b/chrome/browser/ui/app_list/search/history_unittest.cc
index d90a2776fc650753c15e8b3b30349dc0b222380b..c0fdae99c6bbffe3d6c751872118ab8850c1b50f 100644
--- a/chrome/browser/ui/app_list/search/history_unittest.cc
+++ b/chrome/browser/ui/app_list/search/history_unittest.cc
@@ -9,10 +9,12 @@
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/threading/platform_thread.h"
+#include "chrome/browser/ui/app_list/search/common/dictionary_data_store.h"
#include "chrome/browser/ui/app_list/search/history.h"
#include "chrome/browser/ui/app_list/search/history_data.h"
#include "chrome/browser/ui/app_list/search/history_data_observer.h"
#include "chrome/browser/ui/app_list/search/history_data_store.h"
+#include "chrome/browser/ui/app_list/search/history_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/test_browser_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -101,7 +103,13 @@ class SearchHistoryTest : public testing::Test {
}
void CreateHistory() {
- history_.reset(new History(profile_.get()));
+ const char kStoreDataFileName[] = "app-launcher-test";
+ const base::FilePath data_file =
+ profile_->GetPath().AppendASCII(kStoreDataFileName);
+ scoped_refptr<DictionaryDataStore> dictionary_data_store(
+ new DictionaryDataStore(data_file));
+ history_.reset(new History(scoped_refptr<HistoryDataStore>(
+ new HistoryDataStore(dictionary_data_store))));
// Replace |data_| with test params.
history_->data_->RemoveObserver(history_.get());
« no previous file with comments | « chrome/browser/ui/app_list/search/history_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698