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

Side by Side Diff: athena/test/base/athena_test_base.h

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 unified diff | Download patch
« no previous file with comments | « athena/test/base/athena_browser_test_main.cc ('k') | athena/test/base/athena_test_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ATHENA_TEST_BASE_ATHENA_TEST_BASE_H_
6 #define ATHENA_TEST_BASE_ATHENA_TEST_BASE_H_
7
8 #include "athena/test/base/athena_test_helper.h"
9 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h"
11 #include "testing/gtest/include/gtest/gtest.h"
12
13 namespace aura {
14 class Window;
15 class WindowDelegate;
16 }
17
18 namespace athena {
19 namespace test {
20
21 // A base class for athena unit tests.
22 class AthenaTestBase : public testing::Test {
23 public:
24 AthenaTestBase();
25 ~AthenaTestBase() override;
26
27 // testing::Test:
28 void SetUp() override;
29 void TearDown() override;
30
31 protected:
32 void RunAllPendingInMessageLoop();
33
34 aura::Window* root_window() { return helper_->GetRootWindow(); }
35 aura::WindowTreeHost* host() { return helper_->GetHost(); }
36
37 private:
38 bool setup_called_;
39 bool teardown_called_;
40
41 base::MessageLoopForUI message_loop_;
42 scoped_ptr<AthenaTestHelper> helper_;
43
44 DISALLOW_COPY_AND_ASSIGN(AthenaTestBase);
45 };
46
47 } // namespace test
48 } // namespace athena
49
50 #endif // ATHENA_TEST_BASE_ATHENA_TEST_BASE_H_
OLDNEW
« no previous file with comments | « athena/test/base/athena_browser_test_main.cc ('k') | athena/test/base/athena_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698