| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 | 27 |
| 28 #include "IDBBackingStore.h" | 28 #include "IDBBackingStore.h" |
| 29 | 29 |
| 30 #include "IDBFactoryBackendImpl.h" | 30 #include "IDBFactoryBackendImpl.h" |
| 31 #include "IDBLevelDBCoding.h" | 31 #include "IDBLevelDBCoding.h" |
| 32 #include "SecurityOrigin.h" | 32 #include "SecurityOrigin.h" |
| 33 #include "SharedBuffer.h" | 33 #include "core/platform/SharedBuffer.h" |
| 34 | 34 |
| 35 #include <gtest/gtest.h> | 35 #include <gtest/gtest.h> |
| 36 #include <webkit/support/webkit_support.h> | 36 #include <webkit/support/webkit_support.h> |
| 37 | 37 |
| 38 using namespace WebCore; | 38 using namespace WebCore; |
| 39 using IDBLevelDBCoding::KeyPrefix; | 39 using IDBLevelDBCoding::KeyPrefix; |
| 40 | 40 |
| 41 namespace { | 41 namespace { |
| 42 | 42 |
| 43 class IDBBackingStoreTest : public testing::Test { | 43 class IDBBackingStoreTest : public testing::Test { |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 RefPtr<IDBBackingStore> memStore3 = factory->testOpenBackingStore(origin2, S
tring()); | 309 RefPtr<IDBBackingStore> memStore3 = factory->testOpenBackingStore(origin2, S
tring()); |
| 310 EXPECT_EQ(2, memStore3->refCount()); | 310 EXPECT_EQ(2, memStore3->refCount()); |
| 311 EXPECT_EQ(3, memStore1->refCount()); | 311 EXPECT_EQ(3, memStore1->refCount()); |
| 312 | 312 |
| 313 factory.clear(); | 313 factory.clear(); |
| 314 EXPECT_EQ(2, memStore1->refCount()); | 314 EXPECT_EQ(2, memStore1->refCount()); |
| 315 EXPECT_EQ(1, memStore3->refCount()); | 315 EXPECT_EQ(1, memStore3->refCount()); |
| 316 } | 316 } |
| 317 | 317 |
| 318 } // namespace | 318 } // namespace |
| OLD | NEW |