Searched refs:TranslateScript (Results 1 – 8 of 8) sorted by relevance
32 const char TranslateScript::kScriptURL[] =34 const char TranslateScript::kRequestHeader[] =36 const char TranslateScript::kAlwaysUseSslQueryName[] = "aus";37 const char TranslateScript::kAlwaysUseSslQueryValue[] = "true";38 const char TranslateScript::kCallbackQueryName[] = "cb";39 const char TranslateScript::kCallbackQueryValue[] =41 const char TranslateScript::kCssLoaderCallbackQueryName[] = "clc";42 const char TranslateScript::kCssLoaderCallbackQueryValue[] =44 const char TranslateScript::kJavascriptLoaderCallbackQueryName[] = "jlc";45 const char TranslateScript::kJavascriptLoaderCallbackQueryValue[] =[all …]
27 script_.reset(new TranslateScript); in SetUp()42 return url_fetcher_factory_.GetFetcherByID(TranslateScript::kFetcherId); in GetTestURLFetcher()49 scoped_ptr<TranslateScript> script_;60 GURL expected_url(TranslateScript::kScriptURL); in TEST_F()73 base::StringPrintf("%s\r\n\r\n", TranslateScript::kRequestHeader); in TEST_F()80 url, TranslateScript::kAlwaysUseSslQueryName, &always_use_ssl); in TEST_F()81 EXPECT_EQ(std::string(TranslateScript::kAlwaysUseSslQueryValue), in TEST_F()86 url, TranslateScript::kCallbackQueryName, &callback); in TEST_F()87 EXPECT_EQ(std::string(TranslateScript::kCallbackQueryValue), callback); in TEST_F()93 url, TranslateScript::kCssLoaderCallbackQueryName, &css_loader_callback); in TEST_F()[all …]
22 class TranslateScript {28 TranslateScript();29 virtual ~TranslateScript();90 base::WeakPtrFactory<TranslateScript> weak_method_factory_;92 DISALLOW_COPY_AND_ASSIGN(TranslateScript);
49 TranslateScript* script() { return script_.get(); } in script()102 scoped_ptr<TranslateScript> script_;
23 script_(new TranslateScript) {} in TranslateDownloadManager()125 script_.reset(new TranslateScript); in ResetForTesting()
239 TranslateScript* script = TranslateDownloadManager::GetInstance()->script(); in TranslatePage()250 TranslateScript::RequestCallback callback = base::Bind( in TranslatePage()329 TranslateScript* translate_script = in OnTranslateScriptFetchComplete()
179 factory.GetFetcherByID(translate::TranslateScript::kFetcherId); in IN_PROC_BROWSER_TEST_F()
292 translate::TranslateScript::kFetcherId); in SimulateTranslateScriptURLFetch()