Skip to content
Repos

DevPlaceApp

C++ 1.3 KB42 lines Opens in site

Directory Raw Download

#pragma once
// Spec: shell.md section 6 (MockDevPlaceApi) and Swift "Model Mocks". Offline fixtures, same content as the iOS
// previews. Dates are relative to the moment of the call (like the Swift computed properties).
#include <string>
#include <vector>

#include "model/Badge.hpp"
#include "model/Feed.hpp"
#include "model/MessagesInbox.hpp"
#include "model/Notifications.hpp"
#include "model/Poll.hpp"
#include "model/PostDetail.hpp"
#include "model/Profile.hpp"
#include "model/ReportReason.hpp"
#include "model/UserSearch.hpp"

namespace dp {

class MockFixtures {
 public:
  static User user();     // cheeze_on_wheels (u1)
  static User user2();    // null_void (u2)
  static User alice();
  static User bob();
  static User carol();
  static std::vector<Badge> badges();
  static Poll pollLayoutContainer();
  static Poll pollTestingFrameworkAlreadyVoted();
  static Poll pollConcurrency();
  static std::vector<Comment> comments();
  static std::vector<Post> posts();
  static Feed feed();
  static PostDetail postDetail();
  static Profile profile();
  static MessagesInbox inbox();
  static MessagesInbox conversation();
  static Notifications notifications();
  static UserSearch userSearch();
  static std::vector<ReportReason> reportReasons();
};

}  // namespace dp
37.3ms