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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "content/browser/appcache/appcache.h" | 9 #include "content/browser/appcache/appcache.h" |
10 #include "content/browser/appcache/appcache_backend_impl.h" | 10 #include "content/browser/appcache/appcache_backend_impl.h" |
11 #include "content/browser/appcache/appcache_group.h" | 11 #include "content/browser/appcache/appcache_group.h" |
12 #include "content/browser/appcache/appcache_host.h" | 12 #include "content/browser/appcache/appcache_host.h" |
13 #include "content/browser/appcache/mock_appcache_policy.h" | 13 #include "content/browser/appcache/mock_appcache_policy.h" |
14 #include "content/browser/appcache/mock_appcache_service.h" | 14 #include "content/browser/appcache/mock_appcache_service.h" |
15 #include "net/url_request/url_request.h" | 15 #include "net/url_request/url_request.h" |
| 16 #include "storage/browser/quota/quota_manager.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "webkit/browser/quota/quota_manager.h" | |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 class AppCacheHostTest : public testing::Test { | 21 class AppCacheHostTest : public testing::Test { |
22 public: | 22 public: |
23 AppCacheHostTest() { | 23 AppCacheHostTest() { |
24 get_status_callback_ = | 24 get_status_callback_ = |
25 base::Bind(&AppCacheHostTest::GetStatusCallback, | 25 base::Bind(&AppCacheHostTest::GetStatusCallback, |
26 base::Unretained(this)); | 26 base::Unretained(this)); |
27 start_update_callback_ = | 27 start_update_callback_ = |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 EXPECT_EQ(&mock_frontend_, host.frontend()); | 531 EXPECT_EQ(&mock_frontend_, host.frontend()); |
532 EXPECT_EQ(NULL, host.associated_cache()); | 532 EXPECT_EQ(NULL, host.associated_cache()); |
533 EXPECT_FALSE(host.is_selection_pending()); | 533 EXPECT_FALSE(host.is_selection_pending()); |
534 EXPECT_TRUE(host.preferred_manifest_url().is_empty()); | 534 EXPECT_TRUE(host.preferred_manifest_url().is_empty()); |
535 } | 535 } |
536 EXPECT_EQ(0, mock_quota_proxy->GetInUseCount(kDocAndOriginUrl)); | 536 EXPECT_EQ(0, mock_quota_proxy->GetInUseCount(kDocAndOriginUrl)); |
537 service_.set_quota_manager_proxy(NULL); | 537 service_.set_quota_manager_proxy(NULL); |
538 } | 538 } |
539 | 539 |
540 } // namespace content | 540 } // namespace content |
OLD | NEW |