Home
last modified time | relevance | path

Searched refs:trials_string (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/third_party/webrtc/test/
Dfield_trial.cc45 void InitFieldTrialsFromString(const std::string& trials_string) { in InitFieldTrialsFromString() argument
52 if (trials_string.empty()) return; in InitFieldTrialsFromString()
55 while (next_item < trials_string.length()) { in InitFieldTrialsFromString()
56 size_t name_end = trials_string.find(kPersistentStringSeparator, next_item); in InitFieldTrialsFromString()
57 if (name_end == trials_string.npos || next_item == name_end) in InitFieldTrialsFromString()
59 size_t group_name_end = trials_string.find(kPersistentStringSeparator, in InitFieldTrialsFromString()
61 if (group_name_end == trials_string.npos || name_end + 1 == group_name_end) in InitFieldTrialsFromString()
63 std::string name(trials_string, next_item, name_end - next_item); in InitFieldTrialsFromString()
64 std::string group_name(trials_string, name_end + 1, in InitFieldTrialsFromString()
76 if (next_item == trials_string.length()) in InitFieldTrialsFromString()
/external/chromium_org/chrome/browser/extensions/api/experience_sampling_private/
Dexperience_sampling_private_api_unittest.cc25 std::string trials_string; in TEST_F() local
27 &trials_string)); in TEST_F()
28 ASSERT_EQ("", trials_string); in TEST_F()
39 &trials_string)); in TEST_F()
40 ASSERT_EQ("Some name/Winner/xxx/yyyy/zzz/default/", trials_string); in TEST_F()
/external/chromium_org/base/metrics/
Dfield_trial.cc403 const std::string& trials_string, in CreateTrialsFromString() argument
407 if (trials_string.empty() || !global_) in CreateTrialsFromString()
411 while (next_item < trials_string.length()) { in CreateTrialsFromString()
412 size_t name_end = trials_string.find(kPersistentStringSeparator, next_item); in CreateTrialsFromString()
413 if (name_end == trials_string.npos || next_item == name_end) in CreateTrialsFromString()
415 size_t group_name_end = trials_string.find(kPersistentStringSeparator, in CreateTrialsFromString()
419 if (group_name_end == trials_string.npos) in CreateTrialsFromString()
420 group_name_end = trials_string.length(); in CreateTrialsFromString()
421 std::string name(trials_string, next_item, name_end - next_item); in CreateTrialsFromString()
422 std::string group_name(trials_string, name_end + 1, in CreateTrialsFromString()