#include "base/strings/string_number_conversions.h"
#include "chrome/browser/sync/test/integration/bookmarks_helper.h"
#include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "components/bookmarks/browser/bookmark_node.h"
#include "content/public/test/browser_test.h"
#include "testing/perf/perf_result_reporter.h"
AddURL;
GetBookmarkBarNode;
IndexedURL;
IndexedURLTitle;
Remove;
SetURL;
TimeMutualSyncCycle;
static const size_t kNumBookmarks = …;
namespace {
constexpr char kMetricPrefixBookmarks[] = …;
constexpr char kMetricAddBookmarksSyncTime[] = …;
constexpr char kMetricUpdateBookmarksSyncTime[] = …;
constexpr char kMetricDeleteBookmarksSyncTime[] = …;
perf_test::PerfResultReporter SetUpReporter(const std::string& story) { … }
}
class BookmarksSyncPerfTest : public SyncTest { … };
void BookmarksSyncPerfTest::AddURLs(int profile, size_t num_urls) { … }
void BookmarksSyncPerfTest::UpdateURLs(int profile) { … }
void BookmarksSyncPerfTest::RemoveURLs(int profile) { … }
size_t BookmarksSyncPerfTest::GetURLCount(int profile) { … }
std::string BookmarksSyncPerfTest::NextIndexedURL() { … }
std::string BookmarksSyncPerfTest::NextIndexedURLTitle() { … }
IN_PROC_BROWSER_TEST_F(BookmarksSyncPerfTest, P0) { … }