Home
last modified time | relevance | path

Searched refs:table_ (Results 1 – 25 of 84) sorted by relevance

1234

/external/protobuf/gtest/samples/
Dsample6_unittest.cc63 PrimeTableTest() : table_(CreatePrimeTable<T>()) {} in PrimeTableTest()
65 virtual ~PrimeTableTest() { delete table_; } in ~PrimeTableTest()
74 PrimeTable* const table_; member in PrimeTableTest
108 EXPECT_FALSE(this->table_->IsPrime(-5)); in TYPED_TEST()
109 EXPECT_FALSE(this->table_->IsPrime(0)); in TYPED_TEST()
110 EXPECT_FALSE(this->table_->IsPrime(1)); in TYPED_TEST()
111 EXPECT_FALSE(this->table_->IsPrime(4)); in TYPED_TEST()
112 EXPECT_FALSE(this->table_->IsPrime(6)); in TYPED_TEST()
113 EXPECT_FALSE(this->table_->IsPrime(100)); in TYPED_TEST()
117 EXPECT_TRUE(this->table_->IsPrime(2)); in TYPED_TEST()
[all …]
Dsample7_unittest.cc72 virtual ~PrimeTableTest() { delete table_; } in ~PrimeTableTest()
73 virtual void SetUp() { table_ = (*GetParam())(); } in SetUp()
75 delete table_; in TearDown()
76 table_ = NULL; in TearDown()
80 PrimeTable* table_; member in PrimeTableTest
84 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()
85 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()
86 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()
87 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()
88 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()
[all …]
Dsample8_unittest.cc106 table_ = new HybridPrimeTable(force_on_the_fly, max_precalculated); in SetUp()
109 delete table_; in TearDown()
110 table_ = NULL; in TearDown()
112 HybridPrimeTable* table_; member in PrimeTableTest
122 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()
123 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()
124 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()
125 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()
126 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()
127 EXPECT_FALSE(table_->IsPrime(100)); in TEST_P()
[all …]
/external/chromium_org/testing/gtest/samples/
Dsample6_unittest.cc63 PrimeTableTest() : table_(CreatePrimeTable<T>()) {} in PrimeTableTest()
65 virtual ~PrimeTableTest() { delete table_; } in ~PrimeTableTest()
74 PrimeTable* const table_; member in PrimeTableTest
108 EXPECT_FALSE(this->table_->IsPrime(-5)); in TYPED_TEST()
109 EXPECT_FALSE(this->table_->IsPrime(0)); in TYPED_TEST()
110 EXPECT_FALSE(this->table_->IsPrime(1)); in TYPED_TEST()
111 EXPECT_FALSE(this->table_->IsPrime(4)); in TYPED_TEST()
112 EXPECT_FALSE(this->table_->IsPrime(6)); in TYPED_TEST()
113 EXPECT_FALSE(this->table_->IsPrime(100)); in TYPED_TEST()
117 EXPECT_TRUE(this->table_->IsPrime(2)); in TYPED_TEST()
[all …]
Dsample7_unittest.cc70 virtual ~PrimeTableTest() { delete table_; } in ~PrimeTableTest()
71 virtual void SetUp() { table_ = (*GetParam())(); } in SetUp()
73 delete table_; in TearDown()
74 table_ = NULL; in TearDown()
78 PrimeTable* table_; member in PrimeTableTest
82 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()
83 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()
84 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()
85 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()
86 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()
[all …]
Dsample8_unittest.cc106 table_ = new HybridPrimeTable(force_on_the_fly, max_precalculated); in SetUp()
109 delete table_; in TearDown()
110 table_ = NULL; in TearDown()
112 HybridPrimeTable* table_; member in PrimeTableTest
122 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()
123 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()
124 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()
125 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()
126 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()
127 EXPECT_FALSE(table_->IsPrime(100)); in TEST_P()
[all …]
/external/chromium_org/net/spdy/
Dhpack_header_table_test.cc29 : table_(table) {} in HpackHeaderTablePeer()
32 return table_->dynamic_entries_; in dynamic_entries()
35 return table_->static_entries_; in static_entries()
38 return table_->static_index_.size() + table_->dynamic_index_.size(); in index_size()
42 table_->EvictionSet(name, value, &begin, &end); in EvictionSet()
50 return table_->total_insertions_; in total_insertions()
53 return table_->dynamic_entries_.size(); in dynamic_entries_count()
56 return table_->EvictionCountForEntry(name, value); in EvictionCountForEntry()
59 return table_->EvictionCountToReclaim(reclaim_size); in EvictionCountToReclaim()
62 return table_->Evict(count); in Evict()
[all …]
Dhpack_huffman_table_test.cc35 : table_(table) { } in HpackHuffmanTablePeer()
38 return table_.code_by_id_; in code_by_id()
41 return table_.length_by_id_; in length_by_id()
44 return table_.decode_tables_; in decode_tables()
48 return static_cast<char>(table_.pad_bits_); in pad_bits()
51 return table_.failed_symbol_id_; in failed_symbol_id()
55 table_.decode_entries_.begin() + decode_table.entries_offset; in decode_entries()
86 const HpackHuffmanTable& table_; member in net::test::HpackHuffmanTablePeer
94 : table_(), in HpackHuffmanTableTest()
95 peer_(table_) {} in HpackHuffmanTableTest()
[all …]
Dhpack_static_table_test.cc21 HpackStaticTableTest() : table_() {} in HpackStaticTableTest()
23 HpackStaticTable table_; member in net::test::__anon972d91cf0111::HpackStaticTableTest
28 EXPECT_FALSE(table_.IsInitialized()); in TEST_F()
30 table_.Initialize(&static_table[0], static_table.size()); in TEST_F()
31 EXPECT_TRUE(table_.IsInitialized()); in TEST_F()
33 HpackHeaderTable::EntryTable static_entries = table_.GetStaticEntries(); in TEST_F()
36 HpackHeaderTable::OrderedEntrySet static_index = table_.GetStaticIndex(); in TEST_F()
/external/chromium_org/ui/views/controls/table/
Dtable_view_unittest.cc20 explicit TableViewTestHelper(TableView* table) : table_(table) {} in TableViewTestHelper()
23 TableView::PaintRegion region(table_->GetPaintRegion(bounds)); in GetPaintRegion()
31 return table_->visible_columns().size(); in visible_col_count()
34 TableHeader* header() { return table_->header_; } in header()
37 TableView* table_; member in views::TableViewTestHelper
173 TableViewTest() : table_(NULL) {} in TableViewTest()
183 table_ = new TestTableView(model_.get(), columns); in SetUp()
184 parent_.reset(table_->CreateParentIfNecessary()); in SetUp()
187 helper_.reset(new TableViewTestHelper(table_)); in SetUp()
191 const int y = row * table_->row_height(); in ClickOnRow()
[all …]
Dtable_header.cc50 TableHeader::TableHeader(TableView* table) : table_(table) { in TableHeader()
59 SetBounds(x(), y(), table_->width(), GetPreferredSize().height()); in Layout()
71 const Columns& columns = table_->visible_columns(); in OnPaint()
72 const int sorted_column_id = table_->sort_descriptors().empty() ? -1 : in OnPaint()
73 table_->sort_descriptors()[0].column_id; in OnPaint()
136 if (table_->sort_descriptors()[0].ascending) { in OnPaint()
195 table_->SetVisibleColumnWidth(resize_details_->column_index, in OnMouseCaptureLost()
233 resize_details_->initial_width = table_->visible_columns()[index].width; in StartResize()
244 table_->SetVisibleColumnWidth( in ContinueResize()
250 if (table_->visible_columns().empty()) in ToggleSortOrder()
[all …]
/external/chromium_org/components/signin/core/browser/webdata/
Dtoken_service_table_unittest.cc25 table_.reset(new TokenServiceTable); in SetUp()
27 db_->AddTable(table_.get()); in SetUp()
33 scoped_ptr<TokenServiceTable> table_; member in TokenServiceTableTest
57 EXPECT_TRUE(table_->GetAllTokens(&out_map)); in TEST_F()
61 EXPECT_TRUE(table_->SetTokenForService(service, "pepperoni")); in TEST_F()
62 EXPECT_TRUE(table_->SetTokenForService(service2, "steak")); in TEST_F()
63 EXPECT_TRUE(table_->GetAllTokens(&out_map)); in TEST_F()
69 EXPECT_TRUE(table_->RemoveAllTokens()); in TEST_F()
70 EXPECT_TRUE(table_->GetAllTokens(&out_map)); in TEST_F()
74 EXPECT_TRUE(table_->SetTokenForService(service, "cheese")); in TEST_F()
[all …]
/external/chromium_org/components/autofill/core/browser/webdata/
Dautofill_table_unittest.cc128 table_.reset(new AutofillTable("en-US")); in SetUp()
130 db_->AddTable(table_.get()); in SetUp()
136 scoped_ptr<AutofillTable> table_; member in autofill::AutofillTableTest
154 EXPECT_FALSE(table_->HasFormElements()); in TEST_F()
155 EXPECT_TRUE(table_->AddFormFieldValue(field, &changes)); in TEST_F()
156 EXPECT_TRUE(table_->HasFormElements()); in TEST_F()
160 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes, in TEST_F()
165 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes, in TEST_F()
171 EXPECT_TRUE(table_->AddFormFieldValueTime(field, &changes, in TEST_F()
191 EXPECT_TRUE(table_->GetFormValuesForElementName( in TEST_F()
[all …]
/external/chromium_org/ui/webui/resources/js/cr/ui/table/
Dtable_header.js23 table_: null, property in TableHeader
44 var list = this.table_.querySelector('list');
52 var cm = this.table_.columnModel;
85 var cm = this.table_.columnModel;
86 var dm = this.table_.dataModel;
113 var cm = this.table_.columnModel;
117 var splitter = new TableSplitter({table: this.table_});
133 var cm = this.table_.columnModel;
146 var cm = this.table_.columnModel;
147 var dm = this.table_.dataModel;
[all …]
/external/chromium_org/v8/src/heap/
Dobjects-visiting-inl.h14 table_.Register( in Initialize()
18 table_.Register( in Initialize()
22 table_.Register(kVisitSlicedString, in Initialize()
26 table_.Register( in Initialize()
30 table_.Register(kVisitFixedArray, in Initialize()
34 table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray); in Initialize()
35 table_.Register(kVisitFixedTypedArray, &VisitFixedTypedArray); in Initialize()
36 table_.Register(kVisitFixedFloat64Array, &VisitFixedTypedArray); in Initialize()
38 table_.Register( in Initialize()
43 table_.Register(kVisitByteArray, &VisitByteArray); in Initialize()
[all …]
/external/chromium_org/chrome/browser/extensions/activity_log/
Ddatabase_string_table.cc20 : table_(table) {} in DatabaseStringTable()
25 if (!connection->DoesTableExist(table_.c_str())) { in Initialize()
29 table_.c_str(), in Initialize()
30 table_.c_str(), in Initialize()
31 table_.c_str()).c_str()); in Initialize()
55 StringPrintf("INSERT OR IGNORE INTO %s(value) VALUES (?)", table_.c_str()) in StringToInt()
72 StringPrintf("SELECT id FROM %s WHERE value = ?", table_.c_str()) in StringToInt()
98 StringPrintf("SELECT value FROM %s WHERE id = ?", table_.c_str()) in IntToString()
/external/chromium_org/third_party/tcmalloc/chromium/src/
Dstack_trace_table.cc59 table_(new Bucket*[kHashTableSize]()) { in StackTraceTable()
60 memset(table_, 0, kHashTableSize * sizeof(Bucket*)); in StackTraceTable()
64 delete[] table_; in ~StackTraceTable()
84 Bucket* b = table_[idx]; in AddTrace()
103 b->next = table_[idx]; in AddTrace()
104 table_[idx] = b; in AddTrace()
127 Bucket* b = table_[i]; in ReadStackTracesAndClear()
147 Bucket* b = table_[i]; in ReadStackTracesAndClear()
153 table_[i] = NULL; in ReadStackTracesAndClear()
/external/chromium_org/third_party/tcmalloc/vendor/src/
Dstack_trace_table.cc59 table_(new Bucket*[kHashTableSize]()) { in StackTraceTable()
60 memset(table_, 0, kHashTableSize * sizeof(Bucket*)); in StackTraceTable()
64 delete[] table_; in ~StackTraceTable()
84 Bucket* b = table_[idx]; in AddTrace()
103 b->next = table_[idx]; in AddTrace()
104 table_[idx] = b; in AddTrace()
127 Bucket* b = table_[i]; in ReadStackTracesAndClear()
147 Bucket* b = table_[i]; in ReadStackTracesAndClear()
153 table_[i] = NULL; in ReadStackTracesAndClear()
/external/chromium_org/chrome/browser/webdata/
Dkeyword_table_unittest.cc34 table_.reset(new KeywordTable); in SetUp()
36 db_->AddTable(table_.get()); in SetUp()
41 EXPECT_TRUE(table_->AddKeyword(keyword)); in AddKeyword()
76 EXPECT_TRUE(table_->RemoveKeyword(id)); in RemoveKeyword()
80 EXPECT_TRUE(table_->UpdateKeyword(keyword)); in UpdateKeyword()
85 EXPECT_TRUE(table_->GetKeywords(&keywords)); in GetKeywords()
90 EXPECT_EQ(kInvalidTemplateURLID, table_->GetDefaultSearchProviderID()); in KeywordMiscTest()
91 EXPECT_EQ(0, table_->GetBuiltinKeywordVersion()); in KeywordMiscTest()
93 EXPECT_TRUE(table_->SetDefaultSearchProviderID(10)); in KeywordMiscTest()
94 EXPECT_TRUE(table_->SetBuiltinKeywordVersion(11)); in KeywordMiscTest()
[all …]
/external/chromium_org/ui/views/examples/
Dtable_example.cc34 TableExample::TableExample() : ExampleBase("Table") , table_(NULL) { in TableExample()
39 delete table_; in ~TableExample()
40 table_ = NULL; in ~TableExample()
71 table_ = new TableView(this, columns, ICON_AND_TEXT, true); in CreateExampleView()
72 table_->SetGrouper(this); in CreateExampleView()
73 table_->SetObserver(this); in CreateExampleView()
86 layout->AddView(table_->CreateParentIfNecessary()); in CreateExampleView()
146 base::UTF16ToASCII(GetText(table_->selection_model().active(), in OnSelectionChanged()
152 base::UTF16ToASCII(GetText(table_->selection_model().active(), in OnDoubleClick()
176 table_->SetColumnVisibility(index, show); in ButtonPressed()
/external/chromium_org/tools/stats_viewer/
Dstats_table.cs33 table_ = table; in StatsTableEntry()
50 return table_.GetValue(id_, filter_pid); in GetValue()
55 private StatsTable table_; field in StatsViewer.StatsTableEntry
321 table_ = table; in StatsTableCounters()
378 StatsTableEntry entry = new StatsTableEntry(id, name.Substring(2), table_); in NameToCounter()
391 StatsTableEntry entry = new StatsTableEntry(id, name, table_); in NameToCounter()
425 Debug.Assert(table_.Header.max_counters > 0); in FindCounters()
433 long offset = table_.CounterNamesOffset + in FindCounters()
452 } while (index < table_.Header.max_counters - 1); in FindCounters()
470 private StatsTable table_; field in StatsViewer.StatsTableCounters
[all …]
/external/chromium_org/tools/memory_inspector/memory_inspector/frontends/www_content/js/
Dstorage.js7 this.table_ = null;
30 this.table_ = new google.visualization.Table($('#storage-table')[0]);
45 var sel = this.table_.getSelection();
68 var sel = this.table_.getSelection();
81 var sel = this.table_.getSelection();
97 var sel = this.table_.getSelection();
166 this.table_.draw(this.tableData_);
/external/sfntly/cpp/src/sfntly/table/
Dtable_based_table_builder.cc40 table_ = NULL; in SubDataSet()
63 if (table_ == NULL) { in GetTable()
64 table_.Attach(down_cast<Table*>(SubBuildTable(InternalReadData()))); in GetTable()
66 return table_; in GetTable()
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/table/
Dtable_based_table_builder.cc40 table_ = NULL; in SubDataSet()
63 if (table_ == NULL) { in GetTable()
64 table_.Attach(down_cast<Table*>(SubBuildTable(InternalReadData()))); in GetTable()
66 return table_; in GetTable()
/external/openfst/src/include/fst/
Dencode.h312 table_(new EncodeTable<A>(flags)), in EncodeMapper()
318 table_(mapper.table_), in EncodeMapper()
320 table_->IncrRefCount(); in EncodeMapper()
327 table_(mapper.table_), in EncodeMapper()
329 table_->IncrRefCount(); in EncodeMapper()
333 if (!table_->DecrRefCount()) delete table_; in ~EncodeMapper() local
364 const EncodeTable<A> &table() const { return *table_; } in table()
367 return table_->Write(strm, source); in Write()
396 SymbolTable *InputSymbols() const { return table_->InputSymbols(); } in InputSymbols()
398 SymbolTable *OutputSymbols() const { return table_->OutputSymbols(); } in OutputSymbols()
[all …]

1234