OLD | NEW |
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 #include <utility> | 5 #include <utility> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/hash.h" | 10 #include "base/hash.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/ptr_util.h" |
12 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
14 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
15 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
16 #include "chromeos/printing/ppd_cache.h" | 17 #include "chromeos/printing/ppd_cache.h" |
17 #include "net/url_request/test_url_request_interceptor.h" | 18 #include "net/url_request/test_url_request_interceptor.h" |
18 #include "net/url_request/url_request_test_util.h" | 19 #include "net/url_request/url_request_test_util.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
20 | 21 |
21 namespace chromeos { | 22 namespace chromeos { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 cache->StoreAvailablePrinters( | 187 cache->StoreAvailablePrinters( |
187 base::MakeUnique<PpdProvider::AvailablePrintersMap>()); | 188 base::MakeUnique<PpdProvider::AvailablePrintersMap>()); |
188 | 189 |
189 // Should *miss* in the cache because the entry is already expired. | 190 // Should *miss* in the cache because the entry is already expired. |
190 EXPECT_FALSE(cache->FindAvailablePrinters()); | 191 EXPECT_FALSE(cache->FindAvailablePrinters()); |
191 } | 192 } |
192 | 193 |
193 } // namespace | 194 } // namespace |
194 } // namespace printing | 195 } // namespace printing |
195 } // namespace chromeos | 196 } // namespace chromeos |
OLD | NEW |