| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 8 #include "base/message_loop.h" |
| 9 #include "net/url_request/url_request.h" | 9 #include "net/url_request/url_request.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "webkit/appcache/appcache.h" | 11 #include "webkit/appcache/appcache.h" |
| 12 #include "webkit/appcache/appcache_backend_impl.h" | 12 #include "webkit/appcache/appcache_backend_impl.h" |
| 13 #include "webkit/appcache/appcache_group.h" | 13 #include "webkit/appcache/appcache_group.h" |
| 14 #include "webkit/appcache/appcache_host.h" | 14 #include "webkit/appcache/appcache_host.h" |
| 15 #include "webkit/appcache/mock_appcache_policy.h" | 15 #include "webkit/appcache/mock_appcache_policy.h" |
| 16 #include "webkit/appcache/mock_appcache_service.h" | 16 #include "webkit/appcache/mock_appcache_service.h" |
| 17 #include "webkit/quota/quota_manager.h" | 17 #include "webkit/browser/quota/quota_manager.h" |
| 18 | 18 |
| 19 namespace appcache { | 19 namespace appcache { |
| 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 EXPECT_EQ(&mock_frontend_, host.frontend()); | 521 EXPECT_EQ(&mock_frontend_, host.frontend()); |
| 522 EXPECT_EQ(NULL, host.associated_cache()); | 522 EXPECT_EQ(NULL, host.associated_cache()); |
| 523 EXPECT_FALSE(host.is_selection_pending()); | 523 EXPECT_FALSE(host.is_selection_pending()); |
| 524 EXPECT_TRUE(host.preferred_manifest_url().is_empty()); | 524 EXPECT_TRUE(host.preferred_manifest_url().is_empty()); |
| 525 } | 525 } |
| 526 EXPECT_EQ(0, mock_quota_proxy->GetInUseCount(kDocAndOriginUrl)); | 526 EXPECT_EQ(0, mock_quota_proxy->GetInUseCount(kDocAndOriginUrl)); |
| 527 service_.set_quota_manager_proxy(NULL); | 527 service_.set_quota_manager_proxy(NULL); |
| 528 } | 528 } |
| 529 | 529 |
| 530 } // namespace appcache | 530 } // namespace appcache |
| OLD | NEW |