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/message_loop.h" | 5 #include "base/message_loop.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_response.h" | 9 #include "webkit/appcache/appcache_response.h" |
10 #include "webkit/appcache/appcache_storage.h" | 10 #include "webkit/appcache/appcache_storage.h" |
11 #include "webkit/appcache/mock_appcache_service.h" | 11 #include "webkit/appcache/mock_appcache_service.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 delegate_reference2 = | 103 delegate_reference2 = |
104 service.storage()->GetOrCreateDelegateReference(&delegate); | 104 service.storage()->GetOrCreateDelegateReference(&delegate); |
105 EXPECT_TRUE(delegate_reference2.get()); | 105 EXPECT_TRUE(delegate_reference2.get()); |
106 EXPECT_TRUE(delegate_reference2->HasOneRef()); | 106 EXPECT_TRUE(delegate_reference2->HasOneRef()); |
107 EXPECT_EQ(&delegate, delegate_reference2->delegate); | 107 EXPECT_EQ(&delegate, delegate_reference2->delegate); |
108 EXPECT_NE(delegate_reference1.get(), delegate_reference2.get()); | 108 EXPECT_NE(delegate_reference1.get(), delegate_reference2.get()); |
109 } | 109 } |
110 | 110 |
111 } // namespace appcache | 111 } // namespace appcache |
OLD | NEW |