| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 public: | 109 public: |
| 110 static PassOwnPtr<MockWebIDBDatabase> create() | 110 static PassOwnPtr<MockWebIDBDatabase> create() |
| 111 { | 111 { |
| 112 return adoptPtr(new MockWebIDBDatabase()); | 112 return adoptPtr(new MockWebIDBDatabase()); |
| 113 } | 113 } |
| 114 virtual ~MockWebIDBDatabase() | 114 virtual ~MockWebIDBDatabase() |
| 115 { | 115 { |
| 116 EXPECT_TRUE(m_closeCalled); | 116 EXPECT_TRUE(m_closeCalled); |
| 117 } | 117 } |
| 118 | 118 |
| 119 virtual void close() OVERRIDE | 119 virtual void close() override |
| 120 { | 120 { |
| 121 m_closeCalled = true; | 121 m_closeCalled = true; |
| 122 } | 122 } |
| 123 virtual void abort(long long transactionId) OVERRIDE { } | 123 virtual void abort(long long transactionId) override { } |
| 124 | 124 |
| 125 private: | 125 private: |
| 126 MockWebIDBDatabase() | 126 MockWebIDBDatabase() |
| 127 : m_closeCalled(false) | 127 : m_closeCalled(false) |
| 128 { | 128 { |
| 129 } | 129 } |
| 130 | 130 |
| 131 bool m_closeCalled; | 131 bool m_closeCalled; |
| 132 }; | 132 }; |
| 133 | 133 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 153 IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState(), call
backs, transactionId, version); | 153 IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState(), call
backs, transactionId, version); |
| 154 EXPECT_EQ(request->readyState(), "pending"); | 154 EXPECT_EQ(request->readyState(), "pending"); |
| 155 | 155 |
| 156 executionContext()->stopActiveDOMObjects(); | 156 executionContext()->stopActiveDOMObjects(); |
| 157 request->onSuccess(backend.release(), metadata); | 157 request->onSuccess(backend.release(), metadata); |
| 158 } | 158 } |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // namespace | 161 } // namespace |
| 162 } // namespace blink | 162 } // namespace blink |
| OLD | NEW |