OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/public/c/environment/logger.h" | 5 #include "mojo/public/c/environment/logger.h" |
6 #include "mojo/public/cpp/environment/environment.h" | 6 #include "mojo/public/cpp/environment/environment.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 namespace mojo { | 9 namespace mojo { |
10 namespace { | 10 namespace { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 // This should kill us: | 48 // This should kill us: |
49 EXPECT_DEATH_IF_SUPPORTED( | 49 EXPECT_DEATH_IF_SUPPORTED( |
50 { logger->LogMessage(MOJO_LOG_LEVEL_FATAL, "Logged at FATAL level"); }, | 50 { logger->LogMessage(MOJO_LOG_LEVEL_FATAL, "Logged at FATAL level"); }, |
51 ""); | 51 ""); |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 } // namespace | 55 } // namespace |
56 } // namespace mojo | 56 } // namespace mojo |
OLD | NEW |