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

Unified Diff: athena/test/base/athena_browser_test.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/athena_browser_test.h ('k') | athena/test/base/athena_browser_test_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/test/base/athena_browser_test.cc
diff --git a/athena/test/base/athena_browser_test.cc b/athena/test/base/athena_browser_test.cc
deleted file mode 100644
index 1348647e1aac7477188a18892afaaf9ff3167e6f..0000000000000000000000000000000000000000
--- a/athena/test/base/athena_browser_test.cc
+++ /dev/null
@@ -1,61 +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/athena_browser_test.h"
-
-#include "athena/activity/public/activity_manager.h"
-#include "athena/content/public/web_contents_view_delegate_creator.h"
-#include "athena/env/public/athena_env.h"
-#include "athena/main/athena_content_client.h"
-#include "athena/main/athena_renderer_pdf_helper.h"
-#include "athena/main/public/athena_launcher.h"
-#include "athena/test/base/test_util.h"
-#include "base/command_line.h"
-#include "base/logging.h"
-#include "content/public/browser/browser_thread.h"
-#include "content/public/common/content_switches.h"
-#include "extensions/shell/browser/shell_content_browser_client.h"
-
-namespace athena {
-namespace test {
-
-AthenaBrowserTest::AthenaBrowserTest() {
-}
-
-AthenaBrowserTest::~AthenaBrowserTest() {
-}
-
-content::BrowserContext* AthenaBrowserTest::GetBrowserContext() {
- return extensions::ShellContentBrowserClient::Get()->GetBrowserContext();
-}
-
-void AthenaBrowserTest::SetUpCommandLine(base::CommandLine* command_line) {
- command_line->AppendSwitchASCII(switches::kTestType, "athena");
- // The NaCl sandbox won't work in our browser tests.
- command_line->AppendSwitch(switches::kNoSandbox);
- content::BrowserTestBase::SetUpCommandLine(command_line);
-}
-
-void AthenaBrowserTest::SetUpOnMainThread() {
- content::BrowserContext* context = GetBrowserContext();
- athena::StartAthenaEnv(content::BrowserThread::GetBlockingPool()
- ->GetTaskRunnerWithShutdownBehavior(
- base::SequencedWorkerPool::SKIP_ON_SHUTDOWN));
- athena::CreateVirtualKeyboardWithContext(context);
- athena::StartAthenaSessionWithContext(context);
-
- // Set the memory pressure to low and turning off undeterministic resource
- // observer events.
- test_util::SendTestMemoryPressureEvent(ResourceManager::MEMORY_PRESSURE_LOW);
-}
-
-void AthenaBrowserTest::RunTestOnMainThreadLoop() {
- base::MessageLoopForUI::current()->RunUntilIdle();
- SetUpOnMainThread();
- RunTestOnMainThread();
- TearDownOnMainThread();
-}
-
-} // namespace test
-} // namespace athena
« no previous file with comments | « athena/test/base/athena_browser_test.h ('k') | athena/test/base/athena_browser_test_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698