OLD | NEW |
| (Empty) |
1 // Copyright 2016 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 "blimp/engine/app/test_content_main_delegate.h" | |
6 | |
7 namespace blimp { | |
8 namespace engine { | |
9 namespace { | |
10 TestContentMainDelegate* g_content_main_delegate = nullptr; | |
11 } // namespace | |
12 | |
13 TestContentMainDelegate::TestContentMainDelegate() { | |
14 DCHECK(!g_content_main_delegate); | |
15 g_content_main_delegate = this; | |
16 } | |
17 | |
18 TestContentMainDelegate::~TestContentMainDelegate() { | |
19 DCHECK_EQ(this, g_content_main_delegate); | |
20 g_content_main_delegate = nullptr; | |
21 } | |
22 | |
23 // static | |
24 TestContentMainDelegate* TestContentMainDelegate::GetInstance() { | |
25 return g_content_main_delegate; | |
26 } | |
27 | |
28 } // namespace engine | |
29 } // namespace blimp | |
OLD | NEW |