Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |