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

Unified Diff: mojo/public/cpp/environment/tests/logger_unittest.cc

Issue 339403003: Mojo: Make GetDefault{AsyncWaiter,Logger} static methods of Environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/environment/tests/async_waiter_unittest.cc ('k') | mojo/public/cpp/gles2/gles2.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/environment/tests/logger_unittest.cc
diff --git a/mojo/public/cpp/environment/tests/logger_unittest.cc b/mojo/public/cpp/environment/tests/logger_unittest.cc
index b3a1cc5c6b7759f3cc7c579cd148ee47a2fbfd5b..e7d6e534d211fd4a80780c23c57afbee4b9823cc 100644
--- a/mojo/public/cpp/environment/tests/logger_unittest.cc
+++ b/mojo/public/cpp/environment/tests/logger_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/public/cpp/environment/default_logger.h"
+#include "mojo/public/c/environment/logger.h"
#include "mojo/public/cpp/environment/environment.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -11,7 +11,7 @@ namespace {
TEST(LoggerTest, Basic) {
Environment environment;
- const MojoLogger* const logger = GetDefaultLogger();
+ const MojoLogger* const logger = Environment::GetDefaultLogger();
logger->LogMessage(MOJO_LOG_LEVEL_VERBOSE-1, "Logged at VERBOSE-1 level");
logger->LogMessage(MOJO_LOG_LEVEL_VERBOSE, "Logged at VERBOSE level");
@@ -27,12 +27,12 @@ TEST(LoggerTest, Basic) {
TEST(LoggerTest, LogLevels) {
Environment environment;
- const MojoLogger* const logger = GetDefaultLogger();
+ const MojoLogger* const logger = Environment::GetDefaultLogger();
for (MojoLogLevel log_level = MOJO_LOG_LEVEL_VERBOSE-1;
log_level <= MOJO_LOG_LEVEL_FATAL+1;
log_level++) {
- Environment::SetMinimumLogLevel(log_level);
+ logger->SetMinimumLogLevel(log_level);
if (log_level <= MOJO_LOG_LEVEL_FATAL)
EXPECT_EQ(log_level, logger->GetMinimumLogLevel());
« no previous file with comments | « mojo/public/cpp/environment/tests/async_waiter_unittest.cc ('k') | mojo/public/cpp/gles2/gles2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698