Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: Source/WebKit/chromium/tests/IDBAbortOnCorruptTest.cpp

Issue 14267029: Prepare to eliminate WebDOMStringList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix names duplication in conversion Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebIDBCallbacksImpl.cpp ('k') | Source/WebKit/chromium/tests/IDBDatabaseBackendTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698