content/common/indexed_db/indexed_db_dispatcher_unittest.cc
// TODO(alecflett): Reenable this test when IDB code in webkit
// enforces size limits. See http://crbug.com/160577
Reenable this test when IDB code in webkit
enforces size limits.
Reenable this test when IDB code in webkit enforces size limits .
TEST(IndexedDBDispatcherTest, DISABLED_ValueSizeTest) {
  string16 data;
  data.resize(kMaxIDBValueSizeInBytes / sizeof(char16) + 1, 'x');
  const bool kIsNull = false;
  const bool kIsInvalid = false;
  const SerializedScriptValue value(kIsNull, kIsInvalid, data);
  const int32 ipc_dummy_id = -1;
  {
    IndexedDBDispatcher dispatcher;
    IndexedDBKey key;
    key.SetNumber(0);
    dispatcher.RequestIDBObjectStorePut(
        value,
        key,
        WebKit::WebIDBObjectStore::AddOrUpdate,
        static_cast<WebKit::WebIDBCallbacks*>(NULL),
        ipc_dummy_id,
        FakeWebIDBTransaction(),
        WebVector<long long>(),
        WebVector<WebVector<WebKit::WebIDBKey> >());
  }
}
TEST ( IndexedDBDispatcherTest , DISABLED_ValueSizeTest ) { string16 data ; data . resize ( kMaxIDBValueSizeInBytes / sizeof ( char16 ) + 1 , ' ' ) ; const bool kIsNull = false ; const bool kIsInvalid = false ; const SerializedScriptValue value ( kIsNull , kIsInvalid , data ) ; const int32 ipc_dummy_id = -1 ; { IndexedDBDispatcher dispatcher ; IndexedDBKey key ; key . SetNumber ( 0 ) ; dispatcher . RequestIDBObjectStorePut ( value , key , WebKit :: WebIDBObjectStore :: AddOrUpdate , static_cast < WebKit :: WebIDBCallbacks * > ( NULL ) , ipc_dummy_id , FakeWebIDBTransaction ( ) , WebVector < long long > ( ) , WebVector < WebVector < WebKit :: WebIDBKey > > ( ) ) ; } }
TODO(alecflett): Reenable this test when IDB code in webkit
enforces size limits.
TODO ( alecflett ) : Reenable this test when IDB code in webkit enforces size limits .