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

Unified Diff: ui/views/test/views_test_helper_aura.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. 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 | « ui/views/test/views_test_helper_aura.h ('k') | ui/views/test/views_test_helper_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/views_test_helper_aura.cc
diff --git a/ui/views/test/views_test_helper_aura.cc b/ui/views/test/views_test_helper_aura.cc
deleted file mode 100644
index 5bc83d391e0a666a7f63be50be5ecaf418f7b129..0000000000000000000000000000000000000000
--- a/ui/views/test/views_test_helper_aura.cc
+++ /dev/null
@@ -1,45 +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 "ui/views/test/views_test_helper_aura.h"
-
-#include "ui/aura/test/aura_test_helper.h"
-#include "ui/wm/core/capture_controller.h"
-#include "ui/wm/core/default_activation_client.h"
-#include "ui/wm/core/wm_state.h"
-
-namespace views {
-
-// static
-ViewsTestHelper* ViewsTestHelper::Create(base::MessageLoopForUI* message_loop,
- ui::ContextFactory* context_factory) {
- return new ViewsTestHelperAura(message_loop, context_factory);
-}
-
-ViewsTestHelperAura::ViewsTestHelperAura(base::MessageLoopForUI* message_loop,
- ui::ContextFactory* context_factory)
- : context_factory_(context_factory) {
- aura_test_helper_.reset(new aura::test::AuraTestHelper(message_loop));
-}
-
-ViewsTestHelperAura::~ViewsTestHelperAura() {
-}
-
-void ViewsTestHelperAura::SetUp() {
- aura_test_helper_->SetUp(context_factory_);
- new wm::DefaultActivationClient(aura_test_helper_->root_window());
- wm_state_.reset(new wm::WMState);
-}
-
-void ViewsTestHelperAura::TearDown() {
- aura_test_helper_->TearDown();
- wm_state_.reset();
- CHECK(!wm::ScopedCaptureClient::IsActive());
-}
-
-gfx::NativeWindow ViewsTestHelperAura::GetContext() {
- return aura_test_helper_->root_window();
-}
-
-} // namespace views
« no previous file with comments | « ui/views/test/views_test_helper_aura.h ('k') | ui/views/test/views_test_helper_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698