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

Unified Diff: ui/aura/test/aura_test_base.h

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/aura/test/DEPS ('k') | ui/aura/test/aura_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/aura_test_base.h
diff --git a/ui/aura/test/aura_test_base.h b/ui/aura/test/aura_test_base.h
deleted file mode 100644
index 4717243827bd3cd3bc503652d961b906613a0a9a..0000000000000000000000000000000000000000
--- a/ui/aura/test/aura_test_base.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef UI_AURA_TEST_AURA_TEST_BASE_H_
-#define UI_AURA_TEST_AURA_TEST_BASE_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/message_loop/message_loop.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/aura/test/aura_test_helper.h"
-
-namespace aura {
-class Window;
-class WindowDelegate;
-namespace test {
-
-// A base class for aura unit tests.
-// TODO(beng): Instances of this test will create and own a RootWindow.
-class AuraTestBase : public testing::Test {
- public:
- AuraTestBase();
- virtual ~AuraTestBase();
-
- // testing::Test:
- virtual void SetUp() override;
- virtual void TearDown() override;
-
- // Creates a normal window parented to |parent|.
- aura::Window* CreateNormalWindow(int id, Window* parent,
- aura::WindowDelegate* delegate);
-
- protected:
- void RunAllPendingInMessageLoop();
-
- void ParentWindow(Window* window);
-
- // A convenience function for dispatching an event to |dispatcher()|.
- // Returns whether |event| was handled.
- bool DispatchEventUsingWindowDispatcher(ui::Event* event);
-
- Window* root_window() { return helper_->root_window(); }
- WindowTreeHost* host() { return helper_->host(); }
- ui::EventProcessor* event_processor() { return helper_->event_processor(); }
- TestScreen* test_screen() { return helper_->test_screen(); }
-
- private:
- bool setup_called_;
- bool teardown_called_;
- base::MessageLoopForUI message_loop_;
- scoped_ptr<AuraTestHelper> helper_;
-
- DISALLOW_COPY_AND_ASSIGN(AuraTestBase);
-};
-
-} // namespace test
-} // namespace aura
-
-#endif // UI_AURA_TEST_AURA_TEST_BASE_H_
« no previous file with comments | « ui/aura/test/DEPS ('k') | ui/aura/test/aura_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698