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

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

Issue 13843016: Prepare to remove WebSecurityOrigin from IDB backend (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove unused static 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 }; 116 };
117 117
118 TEST(IDBAbortTest, TheTest) 118 TEST(IDBAbortTest, TheTest)
119 { 119 {
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->databaseIdentifier(), 0, String() /*path*/);
127 } 127 }
128 128
129 } // namespace 129 } // namespace
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebIDBFactoryImpl.cpp ('k') | Source/modules/indexeddb/IDBFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698