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

Unified Diff: chrome/browser/apps/ephemeral_app_service_browsertest.cc

Issue 1497193002: Remove all the ephemeral apps code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests Created 5 years 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/browser/apps/ephemeral_app_service_browsertest.cc
diff --git a/chrome/browser/apps/ephemeral_app_service_browsertest.cc b/chrome/browser/apps/ephemeral_app_service_browsertest.cc
deleted file mode 100644
index cf1874309fa61d63c38f6b51173b4a1b1a1883c5..0000000000000000000000000000000000000000
--- a/chrome/browser/apps/ephemeral_app_service_browsertest.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2013 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 <vector>
-
-#include "chrome/browser/apps/ephemeral_app_browsertest.h"
-#include "chrome/browser/apps/ephemeral_app_service.h"
-#include "extensions/browser/extension_registry.h"
-
-using extensions::Extension;
-using extensions::ExtensionRegistry;
-
-class EphemeralAppServiceBrowserTest : public EphemeralAppTestBase {};
-
-// Verify that the cache of ephemeral apps is correctly cleared. All ephemeral
-// apps should be removed.
-IN_PROC_BROWSER_TEST_F(EphemeralAppServiceBrowserTest, ClearCachedApps) {
- const Extension* running_app =
- InstallAndLaunchEphemeralApp(kMessagingReceiverApp);
- const Extension* inactive_app =
- InstallAndLaunchEphemeralApp(kDispatchEventTestApp);
- std::string inactive_app_id = inactive_app->id();
- std::string running_app_id = running_app->id();
- CloseAppWaitForUnload(inactive_app_id);
-
- EphemeralAppService* ephemeral_service =
- EphemeralAppService::Get(browser()->profile());
- ASSERT_TRUE(ephemeral_service);
-
- ExtensionRegistry* registry = ExtensionRegistry::Get(profile());
- ASSERT_TRUE(registry);
-
- int extension_count = registry->GenerateInstalledExtensionsSet()->size();
-
- ephemeral_service->ClearCachedApps();
-
- EXPECT_FALSE(registry->GetExtensionById(inactive_app_id,
- ExtensionRegistry::EVERYTHING));
- EXPECT_FALSE(registry->GetExtensionById(running_app_id,
- ExtensionRegistry::EVERYTHING));
-
- int new_extension_count = registry->GenerateInstalledExtensionsSet()->size();
- EXPECT_EQ(2, extension_count - new_extension_count);
-}

Powered by Google App Engine
This is Rietveld 408576698