Home
last modified time | relevance | path

Searched refs:dictionary_text (Results 1 – 5 of 5) sorted by relevance

/external/chromium_org/net/base/
Dsdch_manager_unittest.cc48 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 …]
Dsdch_dictionary_fetcher_unittest.cc79 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()
Dsdch_manager.cc65 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 …]
Dsdch_manager.h52 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/
Dsdch_filter_unittest.cc68 bool AddSdchDictionary(const std::string& dictionary_text, in AddSdchDictionary() argument
72 sdch_manager_->AddSdchDictionary(dictionary_text, gurl); in AddSdchDictionary()