OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "base/values.h" | 6 #include "base/values.h" |
7 #include "content/common/indexed_db/indexed_db_dispatcher.h" | 7 #include "content/common/indexed_db/indexed_db_dispatcher.h" |
8 #include "content/common/indexed_db/indexed_db_key.h" | 8 #include "content/common/indexed_db/indexed_db_key.h" |
9 #include "content/public/common/serialized_script_value.h" | 9 #include "content/public/common/serialized_script_value.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 key, | 40 key, |
41 WebKit::WebIDBObjectStore::AddOrUpdate, | 41 WebKit::WebIDBObjectStore::AddOrUpdate, |
42 static_cast<WebKit::WebIDBCallbacks*>(NULL), | 42 static_cast<WebKit::WebIDBCallbacks*>(NULL), |
43 dummy_id, | 43 dummy_id, |
44 FakeWebIDBTransaction(), | 44 FakeWebIDBTransaction(), |
45 WebVector<WebString>(), | 45 WebVector<WebString>(), |
46 WebVector<WebVector<WebKit::WebIDBKey> >(), | 46 WebVector<WebVector<WebKit::WebIDBKey> >(), |
47 &ec); | 47 &ec); |
48 EXPECT_NE(ec, 0); | 48 EXPECT_NE(ec, 0); |
49 } | 49 } |
50 | |
51 { | |
52 IndexedDBDispatcher dispatcher; | |
53 WebKit::WebExceptionCode ec = 0; | |
54 dispatcher.RequestIDBCursorUpdate( | |
55 value, | |
56 static_cast<WebKit::WebIDBCallbacks*>(NULL), | |
57 dummy_id, | |
58 &ec); | |
59 EXPECT_NE(ec, 0); | |
60 } | |
61 } | 50 } |
OLD | NEW |