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

Side by Side Diff: Source/modules/indexeddb/IDBRequestTest.cpp

Issue 319653002: Cleanup v8 usage in modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Typo Created 6 years, 6 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 19 matching lines...) Expand all
30 #include "core/dom/Document.h" 30 #include "core/dom/Document.h"
31 #include "core/events/EventQueue.h" 31 #include "core/events/EventQueue.h"
32 #include "modules/indexeddb/IDBDatabaseCallbacks.h" 32 #include "modules/indexeddb/IDBDatabaseCallbacks.h"
33 #include "modules/indexeddb/IDBKeyRange.h" 33 #include "modules/indexeddb/IDBKeyRange.h"
34 #include "modules/indexeddb/IDBOpenDBRequest.h" 34 #include "modules/indexeddb/IDBOpenDBRequest.h"
35 #include "platform/SharedBuffer.h" 35 #include "platform/SharedBuffer.h"
36 #include "public/platform/WebBlobInfo.h" 36 #include "public/platform/WebBlobInfo.h"
37 #include "public/platform/WebIDBDatabase.h" 37 #include "public/platform/WebIDBDatabase.h"
38 #include "wtf/PassOwnPtr.h" 38 #include "wtf/PassOwnPtr.h"
39 #include <gtest/gtest.h> 39 #include <gtest/gtest.h>
40 #include <v8.h>
40 41
41 using blink::WebBlobInfo; 42 using blink::WebBlobInfo;
42 using namespace WebCore; 43 using namespace WebCore;
43 44
44 namespace { 45 namespace {
45 46
46 class NullEventQueue FINAL : public EventQueue { 47 class NullEventQueue FINAL : public EventQueue {
47 public: 48 public:
48 NullEventQueue() { } 49 NullEventQueue() { }
49 virtual ~NullEventQueue() { } 50 virtual ~NullEventQueue() { }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 OwnPtr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create(); 175 OwnPtr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create();
175 IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState(), call backs, transactionId, version); 176 IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState(), call backs, transactionId, version);
176 EXPECT_EQ(request->readyState(), "pending"); 177 EXPECT_EQ(request->readyState(), "pending");
177 178
178 executionContext()->stopActiveDOMObjects(); 179 executionContext()->stopActiveDOMObjects();
179 request->onSuccess(backend.release(), metadata); 180 request->onSuccess(backend.release(), metadata);
180 } 181 }
181 } 182 }
182 183
183 } // namespace 184 } // namespace
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBObjectStore.cpp ('k') | Source/modules/indexeddb/IDBTransactionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698