Home
last modified time | relevance | path

Searched refs:factory (Results 1 – 25 of 1205) sorted by relevance

12345678910>>...49

/external/chromium_org/base/message_loop/
Dmessage_loop_test.h21 void RunTest_PostTask(MessagePumpFactory factory);
22 void RunTest_PostDelayedTask_Basic(MessagePumpFactory factory);
23 void RunTest_PostDelayedTask_InDelayOrder(MessagePumpFactory factory);
24 void RunTest_PostDelayedTask_InPostOrder(MessagePumpFactory factory);
25 void RunTest_PostDelayedTask_InPostOrder_2(MessagePumpFactory factory);
26 void RunTest_PostDelayedTask_InPostOrder_3(MessagePumpFactory factory);
27 void RunTest_PostDelayedTask_SharedTimer(MessagePumpFactory factory);
28 void RunTest_EnsureDeletion(MessagePumpFactory factory);
29 void RunTest_EnsureDeletion_Chain(MessagePumpFactory factory);
30 void RunTest_Nesting(MessagePumpFactory factory);
[all …]
/external/chromium_org/google_apis/gcm/engine/
Dconnection_factory_impl_unittest.cc267 TestConnectionFactoryImpl* factory() { return &factory_; } in factory() function in gcm::ConnectionFactoryImplTest
291 factory()->SetConnectionListener(this); in ConnectionFactoryImplTest()
292 factory()->Initialize( in ConnectionFactoryImplTest()
322 ConnectionHandler* handler = factory()->GetConnectionHandler(); in TEST_F()
324 EXPECT_FALSE(factory()->IsEndpointReachable()); in TEST_F()
330 factory()->SetConnectResult(net::OK); in TEST_F()
331 factory()->Connect(); in TEST_F()
332 EXPECT_TRUE(factory()->NextRetryAttempt().is_null()); in TEST_F()
333 EXPECT_EQ(factory()->GetCurrentEndpoint(), BuildEndpoints()[0]); in TEST_F()
334 EXPECT_TRUE(factory()->IsEndpointReachable()); in TEST_F()
[all …]
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3commontree.c58 static void newPool (pANTLR3_ARBORETUM factory);
59 static pANTLR3_BASE_TREE newPoolTree (pANTLR3_ARBORETUM factory);
60 static pANTLR3_BASE_TREE newFromTree (pANTLR3_ARBORETUM factory, pANTLR3_COMMON_TREE tree);
61 static pANTLR3_BASE_TREE newFromToken (pANTLR3_ARBORETUM factory, pANTLR3_COMMON_TOKEN token);
62 static void factoryClose (pANTLR3_ARBORETUM factory);
67 pANTLR3_ARBORETUM factory; in antlr3ArboretumNew() local
71 factory = (pANTLR3_ARBORETUM) ANTLR3_MALLOC((size_t)sizeof(ANTLR3_ARBORETUM)); in antlr3ArboretumNew()
72 if (factory == NULL) in antlr3ArboretumNew()
80 factory->vFactory = antlr3VectorFactoryNew(0); in antlr3ArboretumNew()
81 if (factory->vFactory == NULL) in antlr3ArboretumNew()
[all …]
Dantlr3commontoken.c61 static void factoryClose (pANTLR3_TOKEN_FACTORY factory);
63 static void setInputStream (pANTLR3_TOKEN_FACTORY factory, pANTLR3_INPUT_STREAM input);
64 static void factoryReset (pANTLR3_TOKEN_FACTORY factory);
68 static void newPool (pANTLR3_TOKEN_FACTORY factory);
69 static pANTLR3_COMMON_TOKEN newPoolToken (pANTLR3_TOKEN_FACTORY factory);
94 pANTLR3_TOKEN_FACTORY factory; in antlr3TokenFactoryNew() local
98 factory = (pANTLR3_TOKEN_FACTORY) ANTLR3_MALLOC((size_t)sizeof(ANTLR3_TOKEN_FACTORY)); in antlr3TokenFactoryNew()
100 if (factory == NULL) in antlr3TokenFactoryNew()
107 factory->newToken = newPoolToken; in antlr3TokenFactoryNew()
108 factory->close = factoryClose; in antlr3TokenFactoryNew()
[all …]
Dantlr3string.c38 static pANTLR3_STRING newRaw8 (pANTLR3_STRING_FACTORY factory);
39 static pANTLR3_STRING newRawUTF16 (pANTLR3_STRING_FACTORY factory);
40 static pANTLR3_STRING newSize8 (pANTLR3_STRING_FACTORY factory, ANTLR3_UINT32 size);
41 static pANTLR3_STRING newSizeUTF16 (pANTLR3_STRING_FACTORY factory, ANTLR3_UINT32 size);
42 static pANTLR3_STRING newPtr8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string, ANTLR3_U…
43 static pANTLR3_STRING newPtrUTF16_8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string, AN…
44 static pANTLR3_STRING newPtrUTF16_UTF16 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string…
45 static pANTLR3_STRING newStr8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string);
46 static pANTLR3_STRING newStrUTF16_8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string);
47 static pANTLR3_STRING newStrUTF16_UTF16 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string…
[all …]
/external/chromium_org/components/url_matcher/
Durl_matcher_unittest.cc169 URLMatcherConditionFactory factory; in TEST() local
171 factory.CreateHostPrefixCondition("foo").criterion()); in TEST()
173 factory.CreateHostSuffixCondition("foo").criterion()); in TEST()
175 factory.CreateHostContainsCondition("foo").criterion()); in TEST()
177 factory.CreateHostEqualsCondition("foo").criterion()); in TEST()
179 factory.CreatePathPrefixCondition("foo").criterion()); in TEST()
181 factory.CreatePathSuffixCondition("foo").criterion()); in TEST()
183 factory.CreatePathContainsCondition("foo").criterion()); in TEST()
185 factory.CreatePathEqualsCondition("foo").criterion()); in TEST()
187 factory.CreateQueryPrefixCondition("foo").criterion()); in TEST()
[all …]
/external/chromium_org/content/renderer/media/
Dmedia_stream_video_source_unittest.cc301 MockMediaConstraintFactory factory; in TEST_F() local
302 factory.AddMandatory(MediaStreamVideoSource::kMaxWidth, 352); in TEST_F()
303 factory.AddMandatory(MediaStreamVideoSource::kMaxHeight, 288); in TEST_F()
304 factory.AddMandatory(MediaStreamVideoSource::kMaxFrameRate, 5); in TEST_F()
306 CreateTrackAndStartSource(factory.CreateWebMediaConstraints(), 352, 288, 5); in TEST_F()
312 MockMediaConstraintFactory factory; in TEST_F() local
313 factory.AddMandatory(MediaStreamVideoSource::kMinWidth, 640); in TEST_F()
314 factory.AddMandatory(MediaStreamVideoSource::kMinHeight, 480); in TEST_F()
315 factory.AddOptional(MediaStreamVideoSource::kMinWidth, 1280); in TEST_F()
316 factory.AddOptional(MediaStreamVideoSource::kMinAspectRatio, in TEST_F()
[all …]
/external/chromium_org/content/browser/indexed_db/
Dindexed_db_factory_unittest.cc84 MockIDBFactory* factory() const { return idb_factory_.get(); } in factory() function in content::IndexedDBFactoryTest
103 factory()->TestOpenBackingStore(origin1, temp_directory.path()); in TEST_F()
106 factory()->TestOpenBackingStore(origin1, temp_directory.path()); in TEST_F()
110 factory()->TestOpenBackingStore(origin2, temp_directory.path()); in TEST_F()
112 factory()->TestCloseBackingStore(disk_store1.get()); in TEST_F()
113 factory()->TestCloseBackingStore(disk_store3.get()); in TEST_F()
129 factory()->TestOpenBackingStore(origin, temp_directory.path()); in TEST_F()
136 factory()->TestReleaseBackingStore(store_ptr, false); in TEST_F()
139 factory()->TestOpenBackingStore(origin, temp_directory.path()); in TEST_F()
141 factory()->TestReleaseBackingStore(store_ptr, false); in TEST_F()
[all …]
Dindexed_db_active_blob_registry_unittest.cc61 MockIDBBackingStore(IndexedDBFactory* factory, in MockIDBBackingStore() argument
63 : IndexedDBFakeBackingStore(factory, task_runner), in MockIDBBackingStore()
109 RegistryTestMockFactory* factory() const { return factory_.get(); } in factory() function in content::__anonbbbfa67e0111::IndexedDBActiveBlobRegistryTest
123 EXPECT_TRUE(factory()->CheckNoOriginsInUse()); in TEST_F()
129 EXPECT_TRUE(factory()->CheckNoOriginsInUse()); in TEST_F()
134 EXPECT_TRUE(factory()->CheckNoOriginsInUse()); in TEST_F()
144 EXPECT_TRUE(factory()->CheckSingleOriginInUse(backing_store()->origin_url())); in TEST_F()
150 EXPECT_TRUE(factory()->CheckNoOriginsInUse()); in TEST_F()
155 EXPECT_TRUE(factory()->CheckNoOriginsInUse()); in TEST_F()
166 EXPECT_TRUE(factory()->CheckSingleOriginInUse(backing_store()->origin_url())); in TEST_F()
[all …]
/external/chromium_org/tools/grit/grit/
Dclique_unittest.py26 factory = clique.UberClique()
30 c = factory.MakeClique(msg)
43 factory.FindCliqueAndAddTranslation(msg_de, 'de')
65 factory = clique.UberClique()
66 factory.MakeClique(tclib.Message(text='Alfur', description='alfaholl'))
67 factory.MakeClique(tclib.Message(text='Alfur', description=''))
68 factory.MakeClique(tclib.Message(text='Vaettur', description=''))
69 factory.MakeClique(tclib.Message(text='Vaettur', description=''))
70 factory.MakeClique(tclib.Message(text='Troll', description=''))
71 factory.MakeClique(tclib.Message(text='Gryla', description='ID: IDS_GRYLA'))
[all …]
/external/chromium_org/third_party/webrtc/base/
Dreferencecountedsingletonfactory_unittest.cc42 ReferenceCountedSingletonFactory<MyExistenceWatcher> *factory) { in DoCreateAndGoOutOfScope() argument
43 rcsf_ptr<MyExistenceWatcher> ptr(factory); in DoCreateAndGoOutOfScope()
49 TestReferenceCountedSingletonFactory factory; in TEST() local
51 DoCreateAndGoOutOfScope(&factory); in TEST()
56 TestReferenceCountedSingletonFactory factory; in TEST() local
57 rcsf_ptr<MyExistenceWatcher> ptr(&factory); in TEST()
60 DoCreateAndGoOutOfScope(&factory); in TEST()
65 TestReferenceCountedSingletonFactory factory; in TEST() local
66 rcsf_ptr<MyExistenceWatcher> one(&factory), two(&factory); in TEST()
72 TestReferenceCountedSingletonFactory factory; in TEST() local
[all …]
/external/chromium_org/net/proxy/
Ddhcp_proxy_script_fetcher_factory_unittest.cc14 DhcpProxyScriptFetcherFactory factory; in TEST() local
15 factory.set_enabled(false); in TEST()
16 scoped_ptr<DhcpProxyScriptFetcher> fetcher(factory.Create(NULL)); in TEST()
22 DhcpProxyScriptFetcherFactory factory; in TEST() local
23 factory.set_enabled(true); in TEST()
26 scoped_ptr<DhcpProxyScriptFetcher> fetcher(factory.Create(context.get())); in TEST()
40 DhcpProxyScriptFetcherFactory factory; in TEST() local
42 EXPECT_TRUE(factory.enabled()); in TEST()
44 EXPECT_FALSE(factory.enabled()); in TEST()
47 factory.set_enabled(false); in TEST()
[all …]
/external/chromium_org/v8/src/
Di18n.cc37 Handle<String> str = isolate->factory()->NewStringFromAsciiChecked(key); in ExtractStringSetting()
53 Handle<String> str = isolate->factory()->NewStringFromAsciiChecked(key); in ExtractIntegerSetting()
67 Handle<String> str = isolate->factory()->NewStringFromAsciiChecked(key); in ExtractBooleanSetting()
129 Factory* factory = isolate->factory(); in SetResolvedDateSettings() local
134 resolved, factory->NewStringFromStaticChars("pattern"), in SetResolvedDateSettings()
135 factory->NewStringFromTwoByte( in SetResolvedDateSettings()
144 JSObject::SetProperty(resolved, factory->NewStringFromStaticChars("calendar"), in SetResolvedDateSettings()
145 factory->NewStringFromAsciiChecked(calendar_name), in SetResolvedDateSettings()
157 resolved, factory->NewStringFromStaticChars("timeZone"), in SetResolvedDateSettings()
158 factory->NewStringFromStaticChars("UTC"), SLOPPY).Assert(); in SetResolvedDateSettings()
[all …]
/external/chromium_org/google_apis/gaia/
Dgaia_oauth_client_unittest.cc242 MockOAuthFetcherFactory factory; in TEST_F() local
243 factory.set_response_code(response_code); in TEST_F()
244 factory.set_max_failure_count(4); in TEST_F()
257 MockOAuthFetcherFactory factory; in TEST_F() local
258 factory.set_response_code(response_code); in TEST_F()
259 factory.set_max_failure_count(4); in TEST_F()
260 factory.set_results(kDummyGetTokensResult); in TEST_F()
272 MockOAuthFetcherFactory factory; in TEST_F() local
273 factory.set_response_code(response_code); in TEST_F()
274 factory.set_max_failure_count(-1); in TEST_F()
[all …]
/external/chromium_org/extensions/browser/api/declarative/
Ddeduping_factory_unittest.cc84 DedupingFactory<BaseClass> factory(2); in TEST() local
85 factory.RegisterFactoryMethod( in TEST()
98 factory.Instantiate(kTypeName, d1.get(), &error, &bad_message)); in TEST()
100 factory.Instantiate(kTypeName, d2.get(), &error, &bad_message)); in TEST()
108 factory.Instantiate(kTypeName, d3.get(), &error, &bad_message)); in TEST()
114 factory.Instantiate(kTypeName, d2.get(), &error, &bad_message)); in TEST()
122 factory.Instantiate(kTypeName, d1.get(), &error, &bad_message)); in TEST()
125 factory.Instantiate(kTypeName, d2.get(), &error, &bad_message)); in TEST()
131 DedupingFactory<BaseClass> factory(2); in TEST() local
132 factory.RegisterFactoryMethod( in TEST()
[all …]
/external/sfntly/cpp/src/test/
Dname_editing_test.cc38 void LoadTestFile(FontFactory* factory, FontBuilderArray* font_builders) { in LoadTestFile() argument
39 assert(factory); in LoadTestFile()
44 factory->LoadFontsForBuilding(&input_buffer, font_builders); in LoadTestFile()
48 FontFactoryPtr factory; in TestChangeOneName() local
49 factory.Attach(FontFactory::GetInstance()); in TestChangeOneName()
51 LoadTestFile(factory, &font_builder_array); in TestChangeOneName()
72 factory->SerializeFont(font, &os); in TestChangeOneName()
76 factory->LoadFonts(&is, &font_array); in TestChangeOneName()
92 FontFactoryPtr factory; in TestModifyNameTableAndRevert() local
93 factory.Attach(FontFactory::GetInstance()); in TestModifyNameTableAndRevert()
[all …]
Dtest_font_utils.cc27 void BuilderForFontFile(const char* font_path, FontFactory* factory, in BuilderForFontFile() argument
29 assert(factory); in BuilderForFontFile()
32 factory->LoadFontsForBuilding(&is, builders); in BuilderForFontFile()
36 void SerializeFont(const char* font_path, FontFactory* factory, Font* font) { in SerializeFont() argument
38 assert(factory); in SerializeFont()
41 factory->SerializeFont(font, &output_stream); in SerializeFont()
45 void LoadFont(const char* font_path, FontFactory* factory, FontArray* fonts) { in LoadFont() argument
48 factory->LoadFonts(&is, fonts); in LoadFont()
57 FontFactoryPtr factory; in LoadFontUsingByteVector() local
58 factory.Attach(FontFactory::GetInstance()); in LoadFontUsingByteVector()
[all …]
/external/chromium_org/third_party/sfntly/cpp/src/test/
Dname_editing_test.cc38 void LoadTestFile(FontFactory* factory, FontBuilderArray* font_builders) { in LoadTestFile() argument
39 assert(factory); in LoadTestFile()
44 factory->LoadFontsForBuilding(&input_buffer, font_builders); in LoadTestFile()
48 FontFactoryPtr factory; in TestChangeOneName() local
49 factory.Attach(FontFactory::GetInstance()); in TestChangeOneName()
51 LoadTestFile(factory, &font_builder_array); in TestChangeOneName()
72 factory->SerializeFont(font, &os); in TestChangeOneName()
76 factory->LoadFonts(&is, &font_array); in TestChangeOneName()
92 FontFactoryPtr factory; in TestModifyNameTableAndRevert() local
93 factory.Attach(FontFactory::GetInstance()); in TestModifyNameTableAndRevert()
[all …]
Dtest_font_utils.cc27 void BuilderForFontFile(const char* font_path, FontFactory* factory, in BuilderForFontFile() argument
29 assert(factory); in BuilderForFontFile()
32 factory->LoadFontsForBuilding(&is, builders); in BuilderForFontFile()
36 void SerializeFont(const char* font_path, FontFactory* factory, Font* font) { in SerializeFont() argument
38 assert(factory); in SerializeFont()
41 factory->SerializeFont(font, &output_stream); in SerializeFont()
45 void LoadFont(const char* font_path, FontFactory* factory, FontArray* fonts) { in LoadFont() argument
48 factory->LoadFonts(&is, fonts); in LoadFont()
57 FontFactoryPtr factory; in LoadFontUsingByteVector() local
58 factory.Attach(FontFactory::GetInstance()); in LoadFontUsingByteVector()
[all …]
/external/chromium_org/v8/test/cctest/
Dtest-ordered-hash-table.cc43 Factory* factory = isolate->factory(); in TEST() local
45 Handle<OrderedHashSet> ordered_set = factory->NewOrderedHashSet(); in TEST()
50 Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); in TEST()
51 Handle<JSObject> obj = factory->NewJSObjectFromMap(map); in TEST()
67 Handle<JSObject> obj1 = factory->NewJSObjectFromMap(map); in TEST()
69 Handle<JSObject> obj2 = factory->NewJSObjectFromMap(map); in TEST()
71 Handle<JSObject> obj3 = factory->NewJSObjectFromMap(map); in TEST()
80 Handle<JSObject> obj4 = factory->NewJSObjectFromMap(map); in TEST()
108 Factory* factory = isolate->factory(); in TEST() local
110 Handle<OrderedHashMap> ordered_map = factory->NewOrderedHashMap(); in TEST()
[all …]
Dtest-weaksets.cc45 Factory* factory = isolate->factory(); in AllocateJSWeakSet() local
46 Handle<Map> map = factory->NewMap(JS_WEAK_SET_TYPE, JSWeakSet::kSize); in AllocateJSWeakSet()
47 Handle<JSObject> weakset_obj = factory->NewJSObjectFromMap(map); in AllocateJSWeakSet()
84 Factory* factory = isolate->factory(); in TEST() local
94 Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); in TEST()
95 Handle<JSObject> object = factory->NewJSObjectFromMap(map); in TEST()
145 Factory* factory = isolate->factory(); in TEST() local
156 Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); in TEST()
158 Handle<JSObject> object = factory->NewJSObjectFromMap(map); in TEST()
187 Factory* factory = isolate->factory(); in TEST() local
[all …]
Dtest-weakmaps.cc45 Factory* factory = isolate->factory(); in AllocateJSWeakMap() local
46 Handle<Map> map = factory->NewMap(JS_WEAK_MAP_TYPE, JSWeakMap::kSize); in AllocateJSWeakMap()
47 Handle<JSObject> weakmap_obj = factory->NewJSObjectFromMap(map); in AllocateJSWeakMap()
84 Factory* factory = isolate->factory(); in TEST() local
94 Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); in TEST()
95 Handle<JSObject> object = factory->NewJSObjectFromMap(map); in TEST()
145 Factory* factory = isolate->factory(); in TEST() local
156 Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); in TEST()
158 Handle<JSObject> object = factory->NewJSObjectFromMap(map); in TEST()
187 Factory* factory = isolate->factory(); in TEST() local
[all …]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/ui/
DPerformanceResultsPerspective.java22 private IPageLayout factory; field in PerformanceResultsPerspective
29 this.factory = layout; in createInitialLayout()
40 this.factory.createFolder( in addViews()
44 this.factory.getEditorArea()); in addViews()
49 this.factory.createFolder( in addViews()
53 this.factory.getEditorArea()); in addViews()
59 this.factory.createFolder( in addViews()
63 this.factory.getEditorArea()); in addViews()
66 this.factory.setEditorAreaVisible(false); in addViews()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
DCertificateFactory_ImplTest.java258 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in testGenerateCRLs() local
264 Collection crls = factory.generateCRLs(bais); in testGenerateCRLs()
283 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in testGenerateCRL() local
288 factory.generateCRL(bais); in testGenerateCRL()
294 factory.generateCertificate(bais); in testGenerateCRL()
304 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in testGenerateBase64CRL() local
311 X509CRL crl = (X509CRL) factory.generateCRL(bais); in testGenerateBase64CRL()
324 factory.generateCRL(bais); in testGenerateBase64CRL()
335 factory.generateCRL(bais); in testGenerateBase64CRL()
370 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in testGenerateBase64CRLs() local
[all …]
/external/chromium_org/base/memory/
Dweak_ptr_unittest.cc55 TargetWithFactory() : factory(this) {} in TargetWithFactory()
56 WeakPtrFactory<Target> factory; member
189 WeakPtrFactory<int> factory(&data); in TEST() local
190 WeakPtr<int> ptr = factory.GetWeakPtr(); in TEST()
196 WeakPtrFactory<int> factory(&data); in TEST() local
197 WeakPtr<int> ptr = factory.GetWeakPtr(); in TEST()
207 WeakPtrFactory<int> factory(&data); in TEST() local
208 ptr = factory.GetWeakPtr(); in TEST()
217 WeakPtrFactory<int> factory(&data); in TEST() local
218 a = factory.GetWeakPtr(); in TEST()
[all …]

12345678910>>...49