Lines Matching refs:test_resources
32 ResourcePoolT test_resources; in BuildTestResources() local
35 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources()
36 test_resources.locale.back()->language = "en"; in BuildTestResources()
37 test_resources.locale.back()->region = "US"; in BuildTestResources()
38 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources()
39 test_resources.locale.back()->language = "en"; in BuildTestResources()
40 test_resources.locale.back()->region = "GB"; in BuildTestResources()
41 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources()
42 test_resources.locale.back()->language = "de"; in BuildTestResources()
43 test_resources.locale.back()->region = "DE"; in BuildTestResources()
44 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources()
45 test_resources.locale.back()->language = "fr"; in BuildTestResources()
46 test_resources.locale.back()->region = "FR"; in BuildTestResources()
47 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources()
48 test_resources.locale.back()->language = "pt"; in BuildTestResources()
49 test_resources.locale.back()->region = "PT"; in BuildTestResources()
50 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources()
51 test_resources.locale.back()->language = "pt"; in BuildTestResources()
52 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources()
53 test_resources.locale.back()->language = "zh"; in BuildTestResources()
54 test_resources.locale.back()->script = "Hans"; in BuildTestResources()
55 test_resources.locale.back()->region = "CN"; in BuildTestResources()
56 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources()
57 test_resources.locale.back()->language = "zh"; in BuildTestResources()
58 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources()
59 test_resources.locale.back()->language = "fr"; in BuildTestResources()
60 test_resources.locale.back()->region = "CA"; in BuildTestResources()
62 test_resources.locale.emplace_back(new LanguageTagT); // default in BuildTestResources()
66 test_resources.resource_entry.emplace_back(new ResourceEntryT); in BuildTestResources()
67 test_resources.resource_entry.back()->name = /*resource_name=*/"A"; in BuildTestResources()
70 test_resources.resource_entry.back()->resource.emplace_back(new ResourceT); in BuildTestResources()
71 test_resources.resource_entry.back()->resource.back()->content = "localize"; in BuildTestResources()
72 test_resources.resource_entry.back()->resource.back()->locale.push_back(0); in BuildTestResources()
74 test_resources.resource_entry.back()->resource.back()->locale.push_back( in BuildTestResources()
79 test_resources.resource_entry.back()->resource.emplace_back(new ResourceT); in BuildTestResources()
80 test_resources.resource_entry.back()->resource.back()->content = "localise"; in BuildTestResources()
81 test_resources.resource_entry.back()->resource.back()->locale.push_back(1); in BuildTestResources()
84 test_resources.resource_entry.back()->resource.emplace_back(new ResourceT); in BuildTestResources()
85 test_resources.resource_entry.back()->resource.back()->content = in BuildTestResources()
87 test_resources.resource_entry.back()->resource.back()->locale.push_back(2); in BuildTestResources()
90 test_resources.resource_entry.back()->resource.emplace_back(new ResourceT); in BuildTestResources()
91 test_resources.resource_entry.back()->resource.back()->content = in BuildTestResources()
93 test_resources.resource_entry.back()->resource.back()->locale.push_back(3); in BuildTestResources()
94 test_resources.resource_entry.back()->resource.back()->locale.push_back(8); in BuildTestResources()
97 test_resources.resource_entry.back()->resource.emplace_back(new ResourceT); in BuildTestResources()
98 test_resources.resource_entry.back()->resource.back()->content = in BuildTestResources()
100 test_resources.resource_entry.back()->resource.back()->locale.push_back(4); in BuildTestResources()
103 test_resources.resource_entry.back()->resource.emplace_back(new ResourceT); in BuildTestResources()
104 test_resources.resource_entry.back()->resource.back()->content = in BuildTestResources()
106 test_resources.resource_entry.back()->resource.back()->locale.push_back(5); in BuildTestResources()
109 test_resources.resource_entry.back()->resource.emplace_back(new ResourceT); in BuildTestResources()
110 test_resources.resource_entry.back()->resource.back()->content = "龙"; in BuildTestResources()
111 test_resources.resource_entry.back()->resource.back()->locale.push_back(6); in BuildTestResources()
114 test_resources.resource_entry.back()->resource.emplace_back(new ResourceT); in BuildTestResources()
115 test_resources.resource_entry.back()->resource.back()->content = "龍"; in BuildTestResources()
116 test_resources.resource_entry.back()->resource.back()->locale.push_back(7); in BuildTestResources()
119 builder.Finish(ResourcePool::Pack(builder, &test_resources)); in BuildTestResources()
128 std::string test_resources = BuildTestResources(); in TEST_F() local
130 flatbuffers::GetRoot<ResourcePool>(test_resources.data())); in TEST_F()
153 std::string test_resources = BuildTestResources(); in TEST_F() local
155 flatbuffers::GetRoot<ResourcePool>(test_resources.data())); in TEST_F()
165 std::string test_resources = in TEST_F() local
168 flatbuffers::GetRoot<ResourcePool>(test_resources.data())); in TEST_F()
174 std::string test_resources = in TEST_F() local
177 flatbuffers::GetRoot<ResourcePool>(test_resources.data())); in TEST_F()
187 std::string test_resources = BuildTestResources(); in TEST_F() local
189 flatbuffers::GetRoot<ResourcePool>(test_resources.data())); in TEST_F()
208 std::string test_resources = BuildTestResources(); in TEST_F() local
210 flatbuffers::GetRoot<ResourcePool>(test_resources.data())); in TEST_F()
243 std::string test_resources = BuildTestResources(); in TEST_F() local
245 flatbuffers::GetRoot<ResourcePool>(test_resources.data())); in TEST_F()
262 std::string test_resources = BuildTestResources(); in TEST_F() local
264 flatbuffers::GetRoot<ResourcePool>(test_resources.data())); in TEST_F()