Home
last modified time | relevance | path

Searched refs:TranslateScript (Results 1 – 7 of 7) sorted by relevance

/external/chromium_org/chrome/browser/translate/
Dtranslate_script.cc30 const char TranslateScript::kScriptURL[] =
32 const char TranslateScript::kRequestHeader[] =
34 const char TranslateScript::kAlwaysUseSslQueryName[] = "aus";
35 const char TranslateScript::kAlwaysUseSslQueryValue[] = "true";
36 const char TranslateScript::kCallbackQueryName[] = "cb";
37 const char TranslateScript::kCallbackQueryValue[] =
39 const char TranslateScript::kCssLoaderCallbackQueryName[] = "clc";
40 const char TranslateScript::kCssLoaderCallbackQueryValue[] =
42 const char TranslateScript::kJavascriptLoaderCallbackQueryName[] = "jlc";
43 const char TranslateScript::kJavascriptLoaderCallbackQueryValue[] =
[all …]
Dtranslate_script_unittest.cc24 script_.reset(new TranslateScript); in SetUp()
38 return url_fetcher_factory_.GetFetcherByID(TranslateScript::kFetcherId); in GetTestURLFetcher()
45 scoped_ptr<TranslateScript> script_;
56 GURL expected_url(TranslateScript::kScriptURL); in TEST_F()
69 base::StringPrintf("%s\r\n\r\n", TranslateScript::kRequestHeader); in TEST_F()
76 url, TranslateScript::kAlwaysUseSslQueryName, &always_use_ssl); in TEST_F()
77 EXPECT_EQ(std::string(TranslateScript::kAlwaysUseSslQueryValue), in TEST_F()
82 url, TranslateScript::kCallbackQueryName, &callback); in TEST_F()
83 EXPECT_EQ(std::string(TranslateScript::kCallbackQueryValue), callback); in TEST_F()
87 url, TranslateScript::kCssLoaderCallbackQueryName, &css_loader_callback); in TEST_F()
[all …]
Dtranslate_script.h19 class TranslateScript {
25 TranslateScript();
26 virtual ~TranslateScript();
89 base::WeakPtrFactory<TranslateScript> weak_method_factory_;
91 DISALLOW_COPY_AND_ASSIGN(TranslateScript);
Dtranslate_manager.h34 class TranslateScript; variable
230 scoped_ptr<TranslateScript> script_;
Dtranslate_browsertest.cc176 factory.GetFetcherByID(TranslateScript::kFetcherId); in IN_PROC_BROWSER_TEST_F()
Dtranslate_manager.cc309 script_.reset(new TranslateScript); in TranslateManager()
Dtranslate_manager_browsertest.cc263 url_fetcher_factory_.GetFetcherByID(TranslateScript::kFetcherId); in SimulateTranslateScriptURLFetch()