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

Unified Diff: views/test/views_test_base.h

Issue 8581003: views: Move ime and test directories to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux Created 9 years, 1 month 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 | « views/test/test_views_delegate.cc ('k') | views/test/views_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/test/views_test_base.h
diff --git a/views/test/views_test_base.h b/views/test/views_test_base.h
deleted file mode 100644
index 72181faf3824f1fa19549db923ec40d2478c57d2..0000000000000000000000000000000000000000
--- a/views/test/views_test_base.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2011 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 VIEWS_TEST_VIEWS_TEST_BASE_H_
-#define VIEWS_TEST_VIEWS_TEST_BASE_H_
-#pragma once
-
-#include "base/memory/scoped_ptr.h"
-#include "base/message_loop.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "views/test/test_views_delegate.h"
-
-namespace views {
-
-class TestViewsDelegate;
-
-// A base class for views unit test. It creates a message loop necessary
-// to drive UI events and takes care of OLE initialization for windows.
-class ViewsTestBase : public testing::Test {
- public:
- ViewsTestBase();
- virtual ~ViewsTestBase();
-
- // testing::Test:
- virtual void SetUp() OVERRIDE;
- virtual void TearDown() OVERRIDE;
-
- void RunPendingMessages();
-
- protected:
- TestViewsDelegate& views_delegate() const { return *views_delegate_.get(); }
-
- void set_views_delegate(TestViewsDelegate* views_delegate) {
- views_delegate_.reset(views_delegate);
- }
-
- private:
- MessageLoopForUI message_loop_;
- scoped_ptr<TestViewsDelegate> views_delegate_;
- bool setup_called_;
- bool teardown_called_;
-
- DISALLOW_COPY_AND_ASSIGN(ViewsTestBase);
-};
-
-} // namespace views
-
-#endif // VIEWS_TEST_VIEWS_TEST_BASE_H_
« no previous file with comments | « views/test/test_views_delegate.cc ('k') | views/test/views_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698