Searched defs:batch (Results 1 - 25 of 69) sorted by path

123

/external/chromium_org/base/test/launcher/
H A Dunit_test_launcher.cc32 // This constant controls how many tests are run in a single batch by default.
42 "Runs tests using the gtest framework, each batch of tests being\n"
63 " --test-launcher-batch-limit=N\n"
64 " Sets the limit of test batch to run in a single process to N.\n"
133 std::vector<std::string> batch; variable
135 batch.push_back(test_names[i]);
137 if (batch.size() >= batch_limit_) {
138 RunBatch(test_launcher, batch);
139 batch.clear();
143 RunBatch(test_launcher, batch);
257 std::vector<std::string> batch; local
[all...]
/external/chromium_org/chrome/browser/chromeos/drive/
H A Dresource_metadata_storage.cc300 leveldb::WriteBatch batch;
303 batch.Delete(it->key());
308 return resource_map->Write(leveldb::WriteOptions(), &batch).ok();
316 leveldb::WriteBatch batch; local
319 batch.Delete(it->key());
335 batch.Put(GetIdEntryKey(id_new), id_new);
349 batch.Put(id_new, serialized_entry);
359 batch.Put(GetHeaderDBKey(), serialized_header);
361 return resource_map->Write(leveldb::WriteOptions(), &batch).ok();
377 leveldb::WriteBatch batch;
[all...]
H A Dresource_metadata_storage_unittest.cc293 leveldb::WriteBatch batch; local
301 batch.Put("file:abcd", serialized_entry);
305 batch.Put(std::string("file:abcd") + '\0' + "CACHE", serialized_entry);
307 EXPECT_TRUE(resource_map()->Write(leveldb::WriteOptions(), &batch).ok());
342 leveldb::WriteBatch batch; local
351 batch.Put(local_id, serialized_entry);
355 batch.Put(local_id + '\0' + "CACHE", serialized_entry);
357 batch.Put('\0' + std::string("ID") + '\0' + resource_id, local_id);
359 EXPECT_TRUE(resource_map()->Write(leveldb::WriteOptions(), &batch).ok());
396 leveldb::WriteBatch batch; local
476 leveldb::WriteBatch batch; local
[all...]
/external/chromium_org/chrome/browser/prefs/
H A Dleveldb_pref_store.cc68 leveldb::WriteBatch batch; local
73 batch.Put(iter->first, iter->second);
79 batch.Delete(*iter);
82 leveldb::Status status = db_->Write(leveldb::WriteOptions(), &batch);
360 // Need to erase in case there's a set operation in the same batch that would
371 // Need to erase in case there's a delete operation in the same batch that
/external/chromium_org/chrome/browser/sync/sessions/
H A Dsessions_sync_manager_unittest.cc186 const std::vector<sync_pb::SessionSpecifics>& batch,
190 for (iter = batch.begin();
191 iter != batch.end(); ++iter) {
185 AddTabsToChangeList( const std::vector<sync_pb::SessionSpecifics>& batch, SyncChange::SyncChangeType type, syncer::SyncChangeList* change_list) argument
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/
H A Dleveldb_wrapper.cc186 leveldb::WriteBatch batch; local
193 batch.Put(key, transaction.second);
196 batch.Delete(key);
201 leveldb::Status status = db_->Write(leveldb::WriteOptions(), &batch);
H A Dmetadata_db_migration_util_unittest.cc82 leveldb::WriteBatch batch; local
83 batch.Put(kDatabaseVersionKey, "4");
84 batch.Put(kServiceMetadataKey, "service_metadata");
85 batch.Put(kFileMetadataKeyPrefix, "file_metadata");
86 batch.Put(kFileTrackerKeyPrefix, "file_tracker");
87 batch.Put(kAppRootIDByAppIDKeyPrefix, "app_root_id");
88 batch.Put(kActiveTrackerIDByFileIDKeyPrefix, "active_id_by_file");
89 batch.Put(kTrackerIDByFileIDKeyPrefix, "tracker_id_by_file");
90 batch.Put(kMultiTrackerByFileIDKeyPrefix, "multi_tracker_by_file");
91 batch
[all...]
/external/chromium_org/chrome/browser/sync_file_system/local/
H A Dlocal_file_change_tracker.cc49 SyncStatusCode WriteBatch(scoped_ptr<leveldb::WriteBatch> batch);
276 scoped_ptr<leveldb::WriteBatch> batch(new leveldb::WriteBatch);
285 ResetForURL(url, change_seq, batch.get());
296 ResetForURL(url, change_seq, batch.get());
299 // Fail to apply batch to database wouldn't have critical effect, they'll be
301 tracker_db_->WriteBatch(batch.Pass());
449 leveldb::WriteBatch* batch) {
460 batch->Delete(serialized_url);
602 scoped_ptr<leveldb::WriteBatch> batch) {
606 leveldb::Status status = db_->Write(leveldb::WriteOptions(), batch
447 ResetForURL(const storage::FileSystemURL& url, int change_seq, leveldb::WriteBatch* batch) argument
601 WriteBatch( scoped_ptr<leveldb::WriteBatch> batch) argument
[all...]
/external/chromium_org/content/browser/dom_storage/
H A Dsession_storage_database.cc141 leveldb::WriteBatch batch; local
145 if (!CreateNamespace(namespace_id, kOkIfExists, &batch))
159 &map_id, &batch))
163 if (!ClearMap(map_id, &batch))
169 if (!CreateMapForArea(namespace_id, origin, &map_id, &batch))
174 WriteValuesToMap(map_id, changes, &batch);
176 leveldb::Status s = db_->Write(leveldb::WriteOptions(), &batch);
203 leveldb::WriteBatch batch; local
205 if (!CreateNamespace(new_namespace_id, kOkIfExists, &batch))
216 if (!IncreaseMapRefCount(map_id, &batch))
231 leveldb::WriteBatch batch; local
245 leveldb::WriteBatch batch; local
417 CreateNamespace(const std::string& namespace_id, bool ok_if_exists, leveldb::WriteBatch* batch) argument
470 AddAreaToNamespace(const std::string& namespace_id, const std::string& origin, const std::string& map_id, leveldb::WriteBatch* batch) argument
478 DeleteAreaHelper( const std::string& namespace_id, const std::string& origin, leveldb::WriteBatch* batch) argument
529 CreateMapForArea(const std::string& namespace_id, const GURL& origin, std::string* map_id, leveldb::WriteBatch* batch) argument
591 WriteValuesToMap(const std::string& map_id, const DOMStorageValuesMap& values, leveldb::WriteBatch* batch) argument
622 IncreaseMapRefCount(const std::string& map_id, leveldb::WriteBatch* batch) argument
632 DecreaseMapRefCount(const std::string& map_id, int decrease, leveldb::WriteBatch* batch) argument
653 ClearMap(const std::string& map_id, leveldb::WriteBatch* batch) argument
664 DeepCopyArea( const std::string& namespace_id, const GURL& origin, bool copy_data, std::string* map_id, leveldb::WriteBatch* batch) argument
[all...]
/external/chromium_org/content/browser/service_worker/
H A Dservice_worker_database.cc125 leveldb::WriteBatch* batch) {
126 DCHECK(batch);
142 batch->Put(CreateRegistrationKey(data.registration_id(), origin), value);
148 leveldb::WriteBatch* batch) {
149 DCHECK(batch);
159 batch->Put(CreateResourceRecordKey(version_id, input.resource_id), value);
163 leveldb::WriteBatch* batch) {
165 batch->Put(CreateUniqueOriginKey(origin), "");
169 leveldb::WriteBatch* batch) {
171 batch
123 PutRegistrationDataToBatch( const ServiceWorkerDatabase::RegistrationData& input, leveldb::WriteBatch* batch) argument
145 PutResourceRecordToBatch( const ServiceWorkerDatabase::ResourceRecord& input, int64 version_id, leveldb::WriteBatch* batch) argument
162 PutUniqueOriginToBatch(const GURL& origin, leveldb::WriteBatch* batch) argument
168 PutPurgeableResourceIdToBatch(int64 resource_id, leveldb::WriteBatch* batch) argument
567 leveldb::WriteBatch batch; local
592 leveldb::WriteBatch batch; local
679 leveldb::WriteBatch batch; local
871 DeleteResourceRecords( int64 version_id, std::vector<int64>* newly_purgeable_resources, leveldb::WriteBatch* batch) argument
956 leveldb::WriteBatch batch; local
963 WriteResourceIdsInBatch( const char* id_key_prefix, const std::set<int64>& ids, leveldb::WriteBatch* batch) argument
989 leveldb::WriteBatch batch; local
996 DeleteResourceIdsInBatch( const char* id_key_prefix, const std::set<int64>& ids, leveldb::WriteBatch* batch) argument
1038 WriteBatch( leveldb::WriteBatch* batch) argument
1055 BumpNextRegistrationIdIfNeeded( int64 used_id, leveldb::WriteBatch* batch) argument
1064 BumpNextResourceIdIfNeeded( int64 used_id, leveldb::WriteBatch* batch) argument
1073 BumpNextVersionIdIfNeeded( int64 used_id, leveldb::WriteBatch* batch) argument
[all...]
/external/chromium_org/extensions/browser/api/storage/
H A Dstorage_api_unittest.cc113 leveldb::WriteBatch batch; local
114 batch.Put(kKey, "[{(.*+\"\'\\");
115 EXPECT_TRUE(leveldb_store->WriteToDbForTest(&batch));
/external/chromium_org/extensions/browser/value_store/
H A Dleveldb_value_store.cc179 leveldb::WriteBatch batch;
182 AddToBatch(options, key, value, &batch, changes.get());
186 scoped_ptr<Error> write_error = WriteToDb(&batch);
199 leveldb::WriteBatch batch;
205 AddToBatch(options, it.key(), it.value(), &batch, changes.get());
210 scoped_ptr<Error> write_error = WriteToDb(&batch);
228 leveldb::WriteBatch batch;
241 batch.Delete(*it);
245 leveldb::Status status = db_->Write(leveldb::WriteOptions(), &batch);
305 leveldb::WriteBatch batch; local
318 WriteToDbForTest(leveldb::WriteBatch* batch) argument
370 AddToBatch( ValueStore::WriteOptions options, const std::string& key, const base::Value& value, leveldb::WriteBatch* batch, ValueStoreChangeList* changes) argument
402 WriteToDb( leveldb::WriteBatch* batch) argument
[all...]
H A Dleveldb_value_store_unittest.cc75 leveldb::WriteBatch batch; local
76 batch.Put(kCorruptKey, "[{(.*+\"\'\\");
77 ASSERT_TRUE(store()->WriteToDbForTest(&batch));
118 leveldb::WriteBatch batch; local
119 batch.Put(kCorruptKey1, kCorruptValue);
120 batch.Put(kCorruptKey2, kCorruptValue);
121 ASSERT_TRUE(store()->WriteToDbForTest(&batch));
/external/chromium_org/storage/browser/fileapi/
H A Dsandbox_directory_database.cc555 leveldb::WriteBatch batch; local
556 if (!AddFileInfoHelper(info, temp_id, &batch))
559 batch.Put(LastFileIdKey(), base::Int64ToString(temp_id));
560 status = db_->Write(leveldb::WriteOptions(), &batch);
572 leveldb::WriteBatch batch;
573 if (!RemoveFileInfoHelper(file_id, &batch))
575 leveldb::Status status = db_->Write(leveldb::WriteOptions(), &batch);
605 leveldb::WriteBatch batch; local
606 if (!RemoveFileInfoHelper(file_id, &batch) ||
607 !AddFileInfoHelper(new_info, file_id, &batch))
846 leveldb::WriteBatch batch; local
885 AddFileInfoHelper( const FileInfo& info, FileId file_id, leveldb::WriteBatch* batch) argument
911 RemoveFileInfoHelper( FileId file_id, leveldb::WriteBatch* batch) argument
[all...]
H A Dsandbox_origin_database.cc253 leveldb::WriteBatch batch; local
254 batch.Put(LastPathKey(), path_string);
255 batch.Put(origin_key, path_string);
256 status = db_->Write(leveldb::WriteOptions(), &batch);
/external/chromium_org/third_party/leveldatabase/src/db/
H A Dc.cc192 leveldb_writebatch_t* batch,
194 SaveError(errptr, db->rep->Write(options->rep, &batch->rep));
189 leveldb_write( leveldb_t* db, const leveldb_writeoptions_t* options, leveldb_writebatch_t* batch, char** errptr) argument
H A Dcorruption_test.cc72 WriteBatch batch; local
76 batch.Clear();
77 batch.Put(key, Value(i, &value_space));
84 ASSERT_OK(db_->Write(options, &batch));
226 WriteBatch batch; local
227 batch.Put("a", Value(100, &value_storage));
228 s = db_->Write(WriteOptions(), &batch);
H A Ddb_bench.cc721 WriteBatch batch; local
725 batch.Clear();
730 batch.Put(key, gen.Generate(value_size_));
734 s = db_->Write(write_options_, &batch);
833 WriteBatch batch; local
836 batch.Clear();
841 batch.Delete(key);
844 s = db_->Write(write_options_, &batch);
H A Ddb_impl.cc43 WriteBatch* batch; member in struct:leveldb::DBImpl::Writer
407 WriteBatch batch; local
416 WriteBatchInternal::SetContents(&batch, record);
422 status = WriteBatchInternal::InsertInto(&batch, mem);
428 WriteBatchInternal::Sequence(&batch) +
429 WriteBatchInternal::Count(&batch) - 1;
591 // NULL batch means just wait for earlier writes to be done
1164 w.batch = my_batch;
1181 if (status.ok() && my_batch != NULL) { // NULL batch is for compactions
1236 // REQUIRES: First writer must have a non-NULL batch
1432 WriteBatch batch; local
1438 WriteBatch batch; local
[all...]
H A Ddb_test.cc1871 virtual Status Write(const WriteOptions& options, WriteBatch* batch) { argument
1884 return batch->Iterate(&handler);
2017 } else { // Multi-element batch
2025 // we have multiple entries in the write batch for the same key
H A Dleveldb_main.cc93 WriteBatch batch; local
94 WriteBatchInternal::SetContents(&batch, record);
96 static_cast<unsigned long long>(WriteBatchInternal::Sequence(&batch)));
98 Status s = batch.Iterate(&batch_item_printer);
H A Drepair.cc199 WriteBatch batch; local
209 WriteBatchInternal::SetContents(&batch, record);
210 status = WriteBatchInternal::InsertInto(&batch, mem);
212 counter += WriteBatchInternal::Count(&batch);
H A Dwrite_batch_internal.h18 // Return the number of entries in the batch.
19 static int Count(const WriteBatch* batch);
21 // Set the count for the number of entries in the batch.
22 static void SetCount(WriteBatch* batch, int n);
24 // Return the seqeunce number for the start of this batch.
25 static SequenceNumber Sequence(const WriteBatch* batch);
28 // this batch.
29 static void SetSequence(WriteBatch* batch, SequenceNumber seq);
31 static Slice Contents(const WriteBatch* batch) { argument
32 return Slice(batch
35 ByteSize(const WriteBatch* batch) argument
[all...]
H A Dwrite_batch_test.cc58 WriteBatch batch; local
59 ASSERT_EQ("", PrintContents(&batch));
60 ASSERT_EQ(0, WriteBatchInternal::Count(&batch));
64 WriteBatch batch; local
65 batch.Put(Slice("foo"), Slice("bar"));
66 batch.Delete(Slice("box"));
67 batch.Put(Slice("baz"), Slice("boo"));
68 WriteBatchInternal::SetSequence(&batch, 100);
69 ASSERT_EQ(100, WriteBatchInternal::Sequence(&batch));
70 ASSERT_EQ(3, WriteBatchInternal::Count(&batch));
78 WriteBatch batch; local
[all...]
/external/chromium_org/third_party/leveldatabase/src/issues/
H A Dissue178_test.cc45 leveldb::WriteBatch batch; local
47 batch.Put(Key1(i), "value for range 1 key");
49 ASSERT_OK(db->Write(leveldb::WriteOptions(), &batch));
52 batch.Clear();
54 batch.Put(Key2(i), "value for range 2 key");
56 ASSERT_OK(db->Write(leveldb::WriteOptions(), &batch));
59 batch.Clear();
61 batch.Delete(Key2(i));
63 ASSERT_OK(db->Write(leveldb::WriteOptions(), &batch));

Completed in 2813 milliseconds

123