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

Unified Diff: chrome/test/live_sync/live_apps_sync_test.cc

Issue 7599019: Allow sync integration tests to operate on multiple datatypes: Apps, Extensions, Themes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indents Created 9 years, 4 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
« no previous file with comments | « chrome/test/live_sync/live_apps_sync_test.h ('k') | chrome/test/live_sync/live_extensions_sync_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/live_sync/live_apps_sync_test.cc
diff --git a/chrome/test/live_sync/live_apps_sync_test.cc b/chrome/test/live_sync/live_apps_sync_test.cc
deleted file mode 100644
index 8fb6da906daae01a7bc938df22df9183b1711f70..0000000000000000000000000000000000000000
--- a/chrome/test/live_sync/live_apps_sync_test.cc
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// 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/live_apps_sync_test.h"
-
-#include "base/logging.h"
-#include "base/string_number_conversions.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/common/extensions/extension.h"
-
-namespace {
-
-std::string CreateFakeAppName(int index) {
- return "fakeapp" + base::IntToString(index);
-}
-
-} // namespace
-
-LiveAppsSyncTest::LiveAppsSyncTest(TestType test_type)
- : LiveSyncTest(test_type) {}
-
-LiveAppsSyncTest::~LiveAppsSyncTest() {}
-
-bool LiveAppsSyncTest::SetupClients() {
- if (!LiveSyncTest::SetupClients())
- return false;
-
- extension_helper_.Setup(this);
- return true;
-}
-
-bool LiveAppsSyncTest::HasSameAppsAsVerifier(int index) {
- // TODO(akalin): We may want to filter out non-apps for some tests.
- return extension_helper_.ExtensionStatesMatch(GetProfile(index), verifier());
-}
-
-bool LiveAppsSyncTest::AllProfilesHaveSameAppsAsVerifier() {
- for (int i = 0; i < num_clients(); ++i) {
- if (!HasSameAppsAsVerifier(i)) {
- LOG(ERROR) << "Profile " << i << " doesn't have the same apps as the"
- " verifier profile.";
- return false;
- }
- }
- return true;
-}
-
-void LiveAppsSyncTest::InstallApp(Profile* profile, int index) {
- return extension_helper_.InstallExtension(profile,
- CreateFakeAppName(index),
- Extension::TYPE_HOSTED_APP);
-}
-
-void LiveAppsSyncTest::UninstallApp(Profile* profile, int index) {
- return extension_helper_.UninstallExtension(profile,
- CreateFakeAppName(index));
-}
-
-void LiveAppsSyncTest::EnableApp(Profile* profile, int index) {
- return extension_helper_.EnableExtension(profile,
- CreateFakeAppName(index));
-}
-
-void LiveAppsSyncTest::DisableApp(Profile* profile, int index) {
- return extension_helper_.DisableExtension(profile,
- CreateFakeAppName(index));
-}
-
-void LiveAppsSyncTest::IncognitoEnableApp(Profile* profile, int index) {
- return extension_helper_.IncognitoEnableExtension(profile,
- CreateFakeAppName(index));
-}
-
-void LiveAppsSyncTest::IncognitoDisableApp(Profile* profile, int index) {
- return extension_helper_.IncognitoDisableExtension(profile,
- CreateFakeAppName(index));
-}
-
-void LiveAppsSyncTest::InstallAppsPendingForSync(
- Profile* profile) {
- extension_helper_.InstallExtensionsPendingForSync(
- profile, Extension::TYPE_HOSTED_APP);
-}
« no previous file with comments | « chrome/test/live_sync/live_apps_sync_test.h ('k') | chrome/test/live_sync/live_extensions_sync_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698