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

Side by Side Diff: chrome/browser/ui/app_list/search/history_unittest.cc

Issue 2345583002: Make HistoryDataStoreTest and SearchHistoryTest's SequencedWorkerPool multi-threaded. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } // namespace 89 } // namespace
90 90
91 class SearchHistoryTest : public testing::Test { 91 class SearchHistoryTest : public testing::Test {
92 public: 92 public:
93 SearchHistoryTest() {} 93 SearchHistoryTest() {}
94 ~SearchHistoryTest() override {} 94 ~SearchHistoryTest() override {}
95 95
96 // testing::Test overrides: 96 // testing::Test overrides:
97 void SetUp() override { 97 void SetUp() override {
98 worker_pool_owner_.reset( 98 worker_pool_owner_.reset(
99 new base::SequencedWorkerPoolOwner(1, "AppLauncherTest")); 99 new base::SequencedWorkerPoolOwner(2, "AppLauncherTest"));
Matt Giuca 2016/09/15 23:54:20 I'm not really familiar with this code. Is there a
gab 2016/09/16 00:54:41 In this test it's used to pass to a DictionaryData
100 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 100 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
101 CreateHistory(); 101 CreateHistory();
102 } 102 }
103 void TearDown() override { 103 void TearDown() override {
104 Flush(); 104 Flush();
105 } 105 }
106 106
107 void CreateHistory() { 107 void CreateHistory() {
108 const char kStoreDataFileName[] = "app-launcher-test"; 108 const char kStoreDataFileName[] = "app-launcher-test";
109 const base::FilePath data_file = 109 const base::FilePath data_file =
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 // The oldest secondary is gone. 297 // The oldest secondary is gone.
298 EXPECT_EQ(UNKNOWN_RESULT, GetResultType("1")); 298 EXPECT_EQ(UNKNOWN_RESULT, GetResultType("1"));
299 299
300 // Touched oldest survived. 300 // Touched oldest survived.
301 EXPECT_EQ(PERFECT_SECONDARY, GetResultType("0")); 301 EXPECT_EQ(PERFECT_SECONDARY, GetResultType("0"));
302 } 302 }
303 303
304 } // namespace test 304 } // namespace test
305 } // namespace app_list 305 } // namespace app_list
OLDNEW
« no previous file with comments | « no previous file | ui/app_list/search/history_data_store_unittest.cc » ('j') | ui/app_list/search/history_data_store_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698