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

Side by Side Diff: athena/env/athena_env_unittest.cc

Issue 558823002: Fix crash during shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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 #include "athena/env/public/athena_env.h"
6
7 #include "athena/test/athena_test_base.h"
8 #include "base/bind.h"
9 #include "ui/gfx/display.h"
10 #include "ui/gfx/screen.h"
11
12 namespace athena {
13
14 namespace {
15
16 class AthenaShutdownTest : public test::AthenaTestBase {
17 public:
18 AthenaShutdownTest() {}
19 virtual ~AthenaShutdownTest() {}
20
21 virtual void TearDown() {
22 test::AthenaTestBase::TearDown();
23 ASSERT_NE(
24 gfx::Display::kInvalidDisplayID,
25 gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().id());
26 }
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(AthenaShutdownTest);
30 };
31
32 } // namespace athena
33
34 // gfx::Screen should be accessible after shutdown.
35 TEST_F(AthenaShutdownTest, Shutdown) {
36 }
37
38 } // namespace athena
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698