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

Unified Diff: athena/test/base/athena_test_base.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_test_base.h ('k') | athena/test/base/athena_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/test/base/athena_test_base.cc
diff --git a/athena/test/base/athena_test_base.cc b/athena/test/base/athena_test_base.cc
deleted file mode 100644
index 180baea7b5df4b703f0a75cab9c4e9ec64a8b173..0000000000000000000000000000000000000000
--- a/athena/test/base/athena_test_base.cc
+++ /dev/null
@@ -1,66 +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_test_base.h"
-
-#include "athena/env/public/athena_env.h"
-#include "athena/test/base/athena_test_helper.h"
-#include "ui/aura/test/event_generator_delegate_aura.h"
-#include "ui/compositor/test/context_factories_for_test.h"
-
-#if defined(USE_X11)
-#include "ui/aura/window_tree_host_x11.h"
-#endif
-
-namespace athena {
-namespace test {
-
-AthenaTestBase::AthenaTestBase()
- : setup_called_(false), teardown_called_(false) {
-}
-
-AthenaTestBase::~AthenaTestBase() {
- CHECK(setup_called_)
- << "You have overridden SetUp but never called super class's SetUp";
- CHECK(teardown_called_)
- << "You have overridden TearDown but never called super class's TearDown";
-}
-
-void AthenaTestBase::SetUp() {
- setup_called_ = true;
- testing::Test::SetUp();
-
- // The ContextFactory must exist before any Compositors are created.
- bool enable_pixel_output = false;
- ui::ContextFactory* context_factory =
- ui::InitializeContextFactoryForTests(enable_pixel_output);
-
- helper_.reset(new AthenaTestHelper(&message_loop_));
-#if defined(USE_X11)
- aura::test::SetUseOverrideRedirectWindowByDefault(true);
-#endif
- aura::test::InitializeAuraEventGeneratorDelegate();
- helper_->SetUp(context_factory);
-}
-
-void AthenaTestBase::TearDown() {
- AthenaEnv::Get()->OnTerminating();
-
- teardown_called_ = true;
-
- // Flush the message loop because we have pending release tasks
- // and these tasks if un-executed would upset Valgrind.
- RunAllPendingInMessageLoop();
-
- helper_->TearDown();
- ui::TerminateContextFactoryForTests();
- testing::Test::TearDown();
-}
-
-void AthenaTestBase::RunAllPendingInMessageLoop() {
- helper_->RunAllPendingInMessageLoop();
-}
-
-} // namespace test
-} // namespace athena
« no previous file with comments | « athena/test/base/athena_test_base.h ('k') | athena/test/base/athena_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698