Searched refs:dictionary_text (Results 1 – 5 of 5) sorted by relevance
/external/chromium_org/net/base/ |
D | sdch_manager_unittest.cc | 48 bool AddSdchDictionary(const std::string& dictionary_text, in AddSdchDictionary() argument 52 sdch_manager_->AddSdchDictionary(dictionary_text, gurl); in AddSdchDictionary() 163 std::string dictionary_text(NewSdchDictionary(dictionary_domain)); in TEST_F() local 166 EXPECT_TRUE(AddSdchDictionary(dictionary_text, in TEST_F() 172 std::string dictionary_text(NewSdchDictionary(dictionary_domain)); in TEST_F() local 174 EXPECT_TRUE(AddSdchDictionary(dictionary_text, in TEST_F() 187 std::string dictionary_text(NewSdchDictionary(dictionary_domain)); in TEST_F() local 189 EXPECT_TRUE(AddSdchDictionary(dictionary_text, in TEST_F() 202 std::string dictionary_text(NewSdchDictionary(dictionary_domain)); in TEST_F() local 205 EXPECT_FALSE(AddSdchDictionary(dictionary_text, in TEST_F() [all …]
|
D | sdch_dictionary_fetcher_unittest.cc | 79 DictionaryAdditions(const std::string& dictionary_text, in DictionaryAdditions() 81 : dictionary_text(dictionary_text), in DictionaryAdditions() 85 std::string dictionary_text; member 89 virtual void AddSdchDictionary(const std::string& dictionary_text, in AddSdchDictionary() argument 92 DictionaryAdditions(dictionary_text, dictionary_url)); in AddSdchDictionary() 158 dictionary_url), additions[0].dictionary_text); in TEST_F() 174 dictionary_url), additions[0].dictionary_text); in TEST_F()
|
D | sdch_manager.cc | 65 SdchManager::Dictionary::Dictionary(const std::string& dictionary_text, in Dictionary() argument 73 : text_(dictionary_text, offset), in Dictionary() 471 void SdchManager::GenerateHash(const std::string& dictionary_text, in GenerateHash() argument 474 crypto::SHA256HashString(dictionary_text, binary_hash, sizeof(binary_hash)); in GenerateHash() 507 void SdchManager::AddSdchDictionary(const std::string& dictionary_text, in AddSdchDictionary() argument 512 GenerateHash(dictionary_text, &client_hash, &server_hash); in AddSdchDictionary() 522 if (dictionary_text.empty()) { in AddSdchDictionary() 527 size_t header_end = dictionary_text.find("\n\n"); in AddSdchDictionary() 534 size_t line_end = dictionary_text.find('\n', line_start); in AddSdchDictionary() 538 size_t colon_index = dictionary_text.find(':', line_start); in AddSdchDictionary() [all …]
|
D | sdch_manager.h | 52 virtual void AddSdchDictionary(const std::string& dictionary_text, 198 Dictionary(const std::string& dictionary_text, 337 static void GenerateHash(const std::string& dictionary_text, 358 virtual void AddSdchDictionary(const std::string& dictionary_text,
|
/external/chromium_org/net/filter/ |
D | sdch_filter_unittest.cc | 68 bool AddSdchDictionary(const std::string& dictionary_text, in AddSdchDictionary() argument 72 sdch_manager_->AddSdchDictionary(dictionary_text, gurl); in AddSdchDictionary()
|