Commit 0244f6d8 authored by braffert@chromium.org's avatar braffert@chromium.org

Sync performance tests: append underscore to private variable names.

BUG=none
TEST=sync_performance_tests

Review URL: http://codereview.chromium.org/7541052

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95670 0039d316-1c4b-4281-b951-d872f2087c98
parent 0d495b40
...@@ -19,8 +19,8 @@ class BookmarksSyncPerfTest : public LiveSyncTest { ...@@ -19,8 +19,8 @@ class BookmarksSyncPerfTest : public LiveSyncTest {
public: public:
BookmarksSyncPerfTest() BookmarksSyncPerfTest()
: LiveSyncTest(TWO_CLIENT), : LiveSyncTest(TWO_CLIENT),
url_number(0), url_number_(0),
url_title_number(0) {} url_title_number_(0) {}
// Adds |num_urls| new unique bookmarks to the bookmark bar for |profile|. // Adds |num_urls| new unique bookmarks to the bookmark bar for |profile|.
void AddURLs(int profile, int num_urls); void AddURLs(int profile, int num_urls);
...@@ -45,8 +45,8 @@ class BookmarksSyncPerfTest : public LiveSyncTest { ...@@ -45,8 +45,8 @@ class BookmarksSyncPerfTest : public LiveSyncTest {
// Returns a new unique bookmark title. // Returns a new unique bookmark title.
std::wstring NextIndexedURLTitle(); std::wstring NextIndexedURLTitle();
int url_number; int url_number_;
int url_title_number; int url_title_number_;
DISALLOW_COPY_AND_ASSIGN(BookmarksSyncPerfTest); DISALLOW_COPY_AND_ASSIGN(BookmarksSyncPerfTest);
}; };
...@@ -88,11 +88,11 @@ void BookmarksSyncPerfTest::Cleanup() { ...@@ -88,11 +88,11 @@ void BookmarksSyncPerfTest::Cleanup() {
} }
std::string BookmarksSyncPerfTest::NextIndexedURL() { std::string BookmarksSyncPerfTest::NextIndexedURL() {
return BookmarksHelper::IndexedURL(url_number++); return BookmarksHelper::IndexedURL(url_number_++);
} }
std::wstring BookmarksSyncPerfTest::NextIndexedURLTitle() { std::wstring BookmarksSyncPerfTest::NextIndexedURLTitle() {
return BookmarksHelper::IndexedURLTitle(url_title_number++); return BookmarksHelper::IndexedURLTitle(url_title_number_++);
} }
IN_PROC_BROWSER_TEST_F(BookmarksSyncPerfTest, P0) { IN_PROC_BROWSER_TEST_F(BookmarksSyncPerfTest, P0) {
......
...@@ -17,7 +17,7 @@ static const size_t kBenchmarkPoints[] = {1, 10, 20, 30, 40, 50, 75, 100, 125, ...@@ -17,7 +17,7 @@ static const size_t kBenchmarkPoints[] = {1, 10, 20, 30, 40, 50, 75, 100, 125,
class TypedUrlsSyncPerfTest: public TwoClientLiveTypedUrlsSyncTest { class TypedUrlsSyncPerfTest: public TwoClientLiveTypedUrlsSyncTest {
public: public:
TypedUrlsSyncPerfTest() : url_number(0) {} TypedUrlsSyncPerfTest() : url_number_(0) {}
// Adds |num_urls| new unique typed urls to |profile|. // Adds |num_urls| new unique typed urls to |profile|.
void AddURLs(int profile, int num_urls); void AddURLs(int profile, int num_urls);
...@@ -42,7 +42,7 @@ class TypedUrlsSyncPerfTest: public TwoClientLiveTypedUrlsSyncTest { ...@@ -42,7 +42,7 @@ class TypedUrlsSyncPerfTest: public TwoClientLiveTypedUrlsSyncTest {
// Returns a unique URL according to the integer |n|. // Returns a unique URL according to the integer |n|.
GURL IntToURL(int n); GURL IntToURL(int n);
int url_number; int url_number_;
DISALLOW_COPY_AND_ASSIGN(TypedUrlsSyncPerfTest); DISALLOW_COPY_AND_ASSIGN(TypedUrlsSyncPerfTest);
}; };
...@@ -82,7 +82,7 @@ void TypedUrlsSyncPerfTest::Cleanup() { ...@@ -82,7 +82,7 @@ void TypedUrlsSyncPerfTest::Cleanup() {
} }
GURL TypedUrlsSyncPerfTest::NextURL() { GURL TypedUrlsSyncPerfTest::NextURL() {
return IntToURL(url_number++); return IntToURL(url_number_++);
} }
GURL TypedUrlsSyncPerfTest::IntToURL(int n) { GURL TypedUrlsSyncPerfTest::IntToURL(int n) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment