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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/files/file_util.h" | 6 #include "base/files/file_util.h" |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 34 str += *it; | 34 str += *it; |
| 35 } | 35 } |
| 36 | 36 |
| 37 return str; | 37 return str; |
| 38 } | 38 } |
| 39 | 39 |
| 40 } // namespace | 40 } // namespace |
| 41 | 41 |
| 42 class HistoryDataStoreTest : public testing::Test { | 42 class HistoryDataStoreTest : public testing::Test { |
| 43 public: | 43 public: |
| 44 HistoryDataStoreTest() : worker_pool_owner_(1, "AppLanucherTest") {} | 44 HistoryDataStoreTest() : worker_pool_owner_(2, "AppLanucherTest") {} |
|
Matt Giuca
2016/09/15 23:54:20
Same.
gab
2016/09/16 00:54:41
Same.
| |
| 45 | 45 |
| 46 // testing::Test overrides: | 46 // testing::Test overrides: |
| 47 void SetUp() override { | 47 void SetUp() override { |
| 48 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); | 48 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
| 49 } | 49 } |
| 50 void TearDown() override { | 50 void TearDown() override { |
| 51 // Release |store_| while ui loop is still running. | 51 // Release |store_| while ui loop is still running. |
| 52 store_ = NULL; | 52 store_ = NULL; |
| 53 } | 53 } |
| 54 | 54 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 170 EXPECT_EQ(now, it->second.update_time); | 170 EXPECT_EQ(now, it->second.update_time); |
| 171 | 171 |
| 172 store()->Delete(kQuery); | 172 store()->Delete(kQuery); |
| 173 Flush(); | 173 Flush(); |
| 174 Load(); | 174 Load(); |
| 175 EXPECT_TRUE(associations().empty()); | 175 EXPECT_TRUE(associations().empty()); |
| 176 } | 176 } |
| 177 | 177 |
| 178 } // namespace test | 178 } // namespace test |
| 179 } // namespace app_list | 179 } // namespace app_list |
| OLD | NEW |