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

Unified Diff: athena/test/base/test_util.cc

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « athena/test/base/test_util.h ('k') | athena/test/base/test_windows.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/test/base/test_util.cc
diff --git a/athena/test/base/test_util.cc b/athena/test/base/test_util.cc
deleted file mode 100644
index 7e88e1070dad5dc07040de461b52a69bf177b043..0000000000000000000000000000000000000000
--- a/athena/test/base/test_util.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2014 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 "athena/test/base/test_util.h"
-
-#include "athena/activity/public/activity.h"
-#include "athena/activity/public/activity_factory.h"
-#include "athena/resource_manager/public/resource_manager.h"
-#include "content/public/browser/notification_service.h"
-#include "content/public/test/test_utils.h"
-#include "extensions/browser/notification_types.h"
-
-namespace athena {
-namespace test_util {
-
-void SendTestMemoryPressureEvent(ResourceManager::MemoryPressure pressure) {
- CHECK(ResourceManager::Get());
- ResourceManager::Get()->SetMemoryPressureAndStopMonitoring(pressure);
- WaitUntilIdle();
-}
-
-Activity* CreateTestWebActivity(content::BrowserContext* context,
- const base::string16& title,
- const GURL& url) {
- content::WindowedNotificationObserver observer(
- content::NOTIFICATION_LOAD_STOP,
- content::NotificationService::AllSources());
- Activity* activity =
- ActivityFactory::Get()->CreateWebActivity(context, title, url);
- Activity::Show(activity);
- observer.Wait();
- return activity;
-}
-
-void WaitUntilIdle() {
- base::MessageLoopForUI::current()->RunUntilIdle();
-}
-
-} // namespace test_util
-} // namespace athena
« no previous file with comments | « athena/test/base/test_util.h ('k') | athena/test/base/test_windows.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698