Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: chrome/test/live_sync/perf/extensions_sync_perf_test.cc

Issue 7376001: Move sync performance tests into new target (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/live_sync/perf/extensions_sync_perf_test.cc
diff --git a/chrome/test/live_sync/performance_live_extensions_sync_test.cc b/chrome/test/live_sync/perf/extensions_sync_perf_test.cc
similarity index 86%
rename from chrome/test/live_sync/performance_live_extensions_sync_test.cc
rename to chrome/test/live_sync/perf/extensions_sync_perf_test.cc
index 5bb1e2410abedd230267b2737f77d025a8316ac3..b1e99c253a267e870fc69eed7981575d1a94c75f 100644
--- a/chrome/test/live_sync/performance_live_extensions_sync_test.cc
+++ b/chrome/test/live_sync/perf/extensions_sync_perf_test.cc
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/test/live_sync/perf/live_sync_timing_helper.h"
+
#include "base/stringprintf.h"
#include "chrome/browser/sync/profile_sync_service_harness.h"
#include "chrome/test/live_sync/live_extensions_sync_test.h"
-#include "chrome/test/live_sync/live_sync_timing_helper.h"
// TODO(braffert): Replicate these tests for apps.
@@ -19,10 +20,10 @@ static const int kBenchmarkPoints[] = {1, 10, 20, 30, 40, 50, 75, 100, 125,
// TODO(braffert): Move this class into its own .h/.cc files. What should the
// class files be named as opposed to the file containing the tests themselves?
-class PerformanceLiveExtensionsSyncTest
+class ExtensionsSyncPerfTest
: public TwoClientLiveExtensionsSyncTest {
public:
- PerformanceLiveExtensionsSyncTest() : extension_number_(0) {}
+ ExtensionsSyncPerfTest() : extension_number_(0) {}
// Adds |num_extensions| new unique extensions to |profile|.
void AddExtensions(int profile, int num_extensions);
@@ -39,17 +40,17 @@ class PerformanceLiveExtensionsSyncTest
private:
int extension_number_;
- DISALLOW_COPY_AND_ASSIGN(PerformanceLiveExtensionsSyncTest);
+ DISALLOW_COPY_AND_ASSIGN(ExtensionsSyncPerfTest);
};
-void PerformanceLiveExtensionsSyncTest::AddExtensions(int profile,
+void ExtensionsSyncPerfTest::AddExtensions(int profile,
int num_extensions) {
for (int i = 0; i < num_extensions; ++i) {
InstallExtension(GetProfile(profile), extension_number_++);
}
}
-void PerformanceLiveExtensionsSyncTest::UpdateExtensions(int profile) {
+void ExtensionsSyncPerfTest::UpdateExtensions(int profile) {
std::vector<int> extensions = GetInstalledExtensions(GetProfile(profile));
for (std::vector<int>::iterator it = extensions.begin();
it != extensions.end(); ++it) {
@@ -61,7 +62,7 @@ void PerformanceLiveExtensionsSyncTest::UpdateExtensions(int profile) {
}
}
-void PerformanceLiveExtensionsSyncTest::RemoveExtensions(int profile) {
+void ExtensionsSyncPerfTest::RemoveExtensions(int profile) {
std::vector<int> extensions = GetInstalledExtensions(GetProfile(profile));
for (std::vector<int>::iterator it = extensions.begin();
it != extensions.end(); ++it) {
@@ -69,7 +70,7 @@ void PerformanceLiveExtensionsSyncTest::RemoveExtensions(int profile) {
}
}
-void PerformanceLiveExtensionsSyncTest::Cleanup() {
+void ExtensionsSyncPerfTest::Cleanup() {
for (int i = 0; i < num_clients(); ++i) {
RemoveExtensions(i);
}
@@ -78,7 +79,7 @@ void PerformanceLiveExtensionsSyncTest::Cleanup() {
}
// TCM ID - 7563874.
-IN_PROC_BROWSER_TEST_F(PerformanceLiveExtensionsSyncTest, Add) {
+IN_PROC_BROWSER_TEST_F(ExtensionsSyncPerfTest, Add) {
ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
AddExtensions(0, kNumExtensions);
@@ -92,7 +93,7 @@ IN_PROC_BROWSER_TEST_F(PerformanceLiveExtensionsSyncTest, Add) {
}
// TCM ID - 7655397.
-IN_PROC_BROWSER_TEST_F(PerformanceLiveExtensionsSyncTest, Update) {
+IN_PROC_BROWSER_TEST_F(ExtensionsSyncPerfTest, Update) {
ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
AddExtensions(0, kNumExtensions);
@@ -109,7 +110,7 @@ IN_PROC_BROWSER_TEST_F(PerformanceLiveExtensionsSyncTest, Update) {
}
// TCM ID - 7567721.
-IN_PROC_BROWSER_TEST_F(PerformanceLiveExtensionsSyncTest, Delete) {
+IN_PROC_BROWSER_TEST_F(ExtensionsSyncPerfTest, Delete) {
ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
AddExtensions(0, kNumExtensions);
@@ -125,7 +126,7 @@ IN_PROC_BROWSER_TEST_F(PerformanceLiveExtensionsSyncTest, Delete) {
VLOG(0) << std::endl << "dt: " << dt.InSecondsF() << " s";
}
-IN_PROC_BROWSER_TEST_F(PerformanceLiveExtensionsSyncTest, DISABLED_Benchmark) {
+IN_PROC_BROWSER_TEST_F(ExtensionsSyncPerfTest, DISABLED_Benchmark) {
ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
for (int i = 0; i < kNumBenchmarkPoints; ++i) {

Powered by Google App Engine
This is Rietveld 408576698