1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "chrome/browser/video_tutorials/test/test_utils.h"
6 
7 namespace video_tutorials {
8 namespace test {
9 
10 const char kTestTitle[] = "Test Title";
11 
BuildTestEntry(Tutorial * entry)12 void BuildTestEntry(Tutorial* entry) {
13   *entry = Tutorial(
14       FeatureType::kTest, kTestTitle, "https://www.example.com/video_url",
15       "https://www.example.com/share_url", "https://www.example.com/poster_url",
16       "https://www.example.com/animated_gif_url",
17       "https://www.example.com/thumbnail_url",
18       "https://www.example.com/caption_url", 60);
19 }
20 
BuildTestGroup(TutorialGroup * group)21 void BuildTestGroup(TutorialGroup* group) {
22   *group = TutorialGroup("en");
23   group->tutorials.clear();
24   Tutorial entry1;
25   BuildTestEntry(&entry1);
26   group->tutorials.emplace_back(entry1);
27   group->tutorials.emplace_back(entry1);
28 }
29 
30 }  // namespace test
31 }  // namespace video_tutorials
32