| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   48         return adoptRef(new MockIDBCallbacks()); |   48         return adoptRef(new MockIDBCallbacks()); | 
|   49     } |   49     } | 
|   50     virtual ~MockIDBCallbacks() |   50     virtual ~MockIDBCallbacks() | 
|   51     { |   51     { | 
|   52         EXPECT_TRUE(m_wasErrorCalled); |   52         EXPECT_TRUE(m_wasErrorCalled); | 
|   53     } |   53     } | 
|   54     virtual void onError(PassRefPtr<IDBDatabaseError>) |   54     virtual void onError(PassRefPtr<IDBDatabaseError>) | 
|   55     { |   55     { | 
|   56         m_wasErrorCalled = true; |   56         m_wasErrorCalled = true; | 
|   57     } |   57     } | 
|   58     virtual void onSuccess(PassRefPtr<DOMStringList>) { } |   58     virtual void onSuccess(const Vector<String>&) { } | 
|   59     virtual void onSuccess(PassRefPtr<IDBCursorBackendInterface>, PassRefPtr<IDB
     Key>, PassRefPtr<IDBKey>, PassRefPtr<SharedBuffer>) { } |   59     virtual void onSuccess(PassRefPtr<IDBCursorBackendInterface>, PassRefPtr<IDB
     Key>, PassRefPtr<IDBKey>, PassRefPtr<SharedBuffer>) { } | 
|   60     virtual void onSuccess(PassRefPtr<IDBDatabaseBackendInterface>, const IDBDat
     abaseMetadata&) |   60     virtual void onSuccess(PassRefPtr<IDBDatabaseBackendInterface>, const IDBDat
     abaseMetadata&) | 
|   61     { |   61     { | 
|   62         EXPECT_TRUE(false); |   62         EXPECT_TRUE(false); | 
|   63     } |   63     } | 
|   64     virtual void onSuccess(PassRefPtr<IDBKey>) { } |   64     virtual void onSuccess(PassRefPtr<IDBKey>) { } | 
|   65     virtual void onSuccess(PassRefPtr<SharedBuffer>) OVERRIDE { } |   65     virtual void onSuccess(PassRefPtr<SharedBuffer>) OVERRIDE { } | 
|   66     virtual void onSuccess(PassRefPtr<SharedBuffer>, PassRefPtr<IDBKey>, const I
     DBKeyPath&) OVERRIDE { } |   66     virtual void onSuccess(PassRefPtr<SharedBuffer>, PassRefPtr<IDBKey>, const I
     DBKeyPath&) OVERRIDE { } | 
|   67     virtual void onSuccess(int64_t) OVERRIDE { } |   67     virtual void onSuccess(int64_t) OVERRIDE { } | 
|   68     virtual void onSuccess() OVERRIDE { } |   68     virtual void onSuccess() OVERRIDE { } | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  120     RefPtr<IDBFactoryBackendImpl> factory = FailingIDBFactoryBackendImpl::create
     (); |  120     RefPtr<IDBFactoryBackendImpl> factory = FailingIDBFactoryBackendImpl::create
     (); | 
|  121     const String& name = "db name"; |  121     const String& name = "db name"; | 
|  122     RefPtr<MockIDBCallbacks> callbacks = MockIDBCallbacks::create(); |  122     RefPtr<MockIDBCallbacks> callbacks = MockIDBCallbacks::create(); | 
|  123     RefPtr<FakeIDBDatabaseCallbacks> databaseCallbacks = FakeIDBDatabaseCallback
     s::create(); |  123     RefPtr<FakeIDBDatabaseCallbacks> databaseCallbacks = FakeIDBDatabaseCallback
     s::create(); | 
|  124     RefPtr<SecurityOrigin> origin = SecurityOrigin::create("http", "localhost", 
     81); |  124     RefPtr<SecurityOrigin> origin = SecurityOrigin::create("http", "localhost", 
     81); | 
|  125     const int64_t DummyVersion = 2; |  125     const int64_t DummyVersion = 2; | 
|  126     factory->open(name, DummyVersion, 1, callbacks.get(), databaseCallbacks, ori
     gin, 0 /*Frame*/, String() /*path*/); |  126     factory->open(name, DummyVersion, 1, callbacks.get(), databaseCallbacks, ori
     gin, 0 /*Frame*/, String() /*path*/); | 
|  127 } |  127 } | 
|  128  |  128  | 
|  129 } // namespace |  129 } // namespace | 
| OLD | NEW |