#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/browser/sync/test/integration/passwords_helper.h"
#include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "components/password_manager/core/browser/password_store/password_store_interface.h"
#include "content/public/test/browser_test.h"
#include "testing/perf/perf_result_reporter.h"
CreateTestPasswordForm;
GetPasswordCount;
GetProfilePasswordStoreInterface;
TimeUntilQuiescence;
static const int kNumPasswords = …;
namespace {
constexpr char kMetricPrefixPasswords[] = …;
constexpr char kMetricAddPasswordsSyncTime[] = …;
constexpr char kMetricUpdatePasswordsSyncTime[] = …;
constexpr char kMetricDeletePasswordsSyncTime[] = …;
perf_test::PerfResultReporter SetUpReporter(const std::string& story) { … }
}
class PasswordsSyncPerfTest : public SyncTest { … };
void PasswordsSyncPerfTest::AddLogins(int profile, int num_logins) { … }
void PasswordsSyncPerfTest::UpdateLogins(int profile) { … }
void PasswordsSyncPerfTest::RemoveLogins(int profile) { … }
password_manager::PasswordForm PasswordsSyncPerfTest::NextLogin() { … }
std::string PasswordsSyncPerfTest::NextPassword() { … }
IN_PROC_BROWSER_TEST_F(PasswordsSyncPerfTest, P0) { … }