| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authos. All rights reserved. | 1 // Copyright (c) 2009 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/scoped_ptr.h" | 5 #include "base/scoped_ptr.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 #include "webkit/appcache/appcache.h" | 7 #include "webkit/appcache/appcache.h" |
| 8 #include "webkit/appcache/appcache_group.h" | 8 #include "webkit/appcache/appcache_group.h" |
| 9 #include "webkit/appcache/appcache_host.h" | 9 #include "webkit/appcache/appcache_host.h" |
| 10 #include "webkit/appcache/mock_appcache_service.h" | 10 #include "webkit/appcache/mock_appcache_service.h" |
| 11 | 11 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 EXPECT_FALSE(group2->HasCache()); | 294 EXPECT_FALSE(group2->HasCache()); |
| 295 host.group_being_updated_ = group2; | 295 host.group_being_updated_ = group2; |
| 296 host.OnUpdateComplete(group2); | 296 host.OnUpdateComplete(group2); |
| 297 EXPECT_FALSE(host.group_being_updated_); | 297 EXPECT_FALSE(host.group_being_updated_); |
| 298 EXPECT_FALSE(host.swappable_cache_.get()); // group2 had no newest cache | 298 EXPECT_FALSE(host.swappable_cache_.get()); // group2 had no newest cache |
| 299 } | 299 } |
| 300 // TODO(michaeln): Flesh these tests out more. | 300 // TODO(michaeln): Flesh these tests out more. |
| 301 | 301 |
| 302 } // namespace appcache | 302 } // namespace appcache |
| 303 | 303 |
| OLD | NEW |