OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/pickle.h" | 13 #include "base/pickle.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "content/browser/appcache/appcache_response.h" | 17 #include "content/browser/appcache/appcache_response.h" |
18 #include "content/browser/appcache/appcache_service_impl.h" | 18 #include "content/browser/appcache/appcache_service_impl.h" |
19 #include "content/browser/appcache/mock_appcache_storage.h" | 19 #include "content/browser/appcache/mock_appcache_storage.h" |
20 #include "net/base/completion_callback.h" | 20 #include "net/base/completion_callback.h" |
21 #include "net/base/io_buffer.h" | 21 #include "net/base/io_buffer.h" |
22 #include "net/http/http_response_headers.h" | 22 #include "net/http/http_response_headers.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 namespace { | 26 namespace { |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 EXPECT_EQ(kOneHour, service->reinit_timer_.GetCurrentDelay()); | 379 EXPECT_EQ(kOneHour, service->reinit_timer_.GetCurrentDelay()); |
380 EXPECT_EQ(kOneHour, service->next_reinit_delay_); | 380 EXPECT_EQ(kOneHour, service->next_reinit_delay_); |
381 | 381 |
382 // Fine to delete while pending. | 382 // Fine to delete while pending. |
383 service.reset(NULL); | 383 service.reset(NULL); |
384 } | 384 } |
385 | 385 |
386 | 386 |
387 | 387 |
388 } // namespace content | 388 } // namespace content |
OLD | NEW |