Update all .cpp files to use .cc extension (google style)

This commit is contained in:
Aaron Po
2026-04-13 00:11:24 -04:00
parent 035b30abba
commit ef4f47d415
25 changed files with 50 additions and 50 deletions

View File

@@ -0,0 +1,22 @@
/**
* @file data_generation/mock/generate_user.cc
* @brief Generates deterministic mock user profiles by hashing locale values
* into predefined username and bio collections.
*/
#include <functional>
#include <string>
#include <string_view>
#include "data_generation/mock_generator.h"
UserResult MockGenerator::GenerateUser(const std::string& locale) {
const std::size_t hash = std::hash<std::string>{}(locale);
UserResult result;
const std::string_view username = kUsernames[hash % kUsernames.size()];
const std::string_view bio = kBios[hash / 11 % kBios.size()];
result.username = username;
result.bio = bio;
return result;
}