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

Side by Side Diff: mojo/public/cpp/environment/tests/logging_unittest.cc

Issue 1755003002: Remove MOJO_DISALLOW_COPY_AND_ASSIGN and MOJO_ALLOW_UNUSED_LOCAL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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
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 <stdint.h> 5 #include <stdint.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 7
8 #include <sstream> 8 #include <sstream>
9 #include <string> 9 #include <string>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 static const MojoLogger kMockLogger; 88 static const MojoLogger kMockLogger;
89 static MojoLogLevel minimum_log_level_; 89 static MojoLogLevel minimum_log_level_;
90 static bool log_message_was_called_; 90 static bool log_message_was_called_;
91 static MojoLogLevel last_log_level_; 91 static MojoLogLevel last_log_level_;
92 static std::string last_source_file_; 92 static std::string last_source_file_;
93 static uint32_t last_source_line_; 93 static uint32_t last_source_line_;
94 static std::string last_message_; 94 static std::string last_message_;
95 static bool not_called_condition_was_called_; 95 static bool not_called_condition_was_called_;
96 96
97 MOJO_DISALLOW_COPY_AND_ASSIGN(LoggingTest); 97 DISALLOW_COPY_AND_ASSIGN(LoggingTest);
98 }; 98 };
99 99
100 // static 100 // static
101 const MojoLogger LoggingTest::kMockLogger = { 101 const MojoLogger LoggingTest::kMockLogger = {
102 &LoggingTest::MockLogMessage, 102 &LoggingTest::MockLogMessage,
103 &LoggingTest::MockGetMinimumLogLevel, 103 &LoggingTest::MockGetMinimumLogLevel,
104 &LoggingTest::MockSetMinimumLogLevel}; 104 &LoggingTest::MockSetMinimumLogLevel};
105 105
106 // static 106 // static
107 MojoLogLevel LoggingTest::minimum_log_level_ = MOJO_LOG_LEVEL_INFO; 107 MojoLogLevel LoggingTest::minimum_log_level_ = MOJO_LOG_LEVEL_INFO;
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 ResetMockLogger(); 513 ResetMockLogger();
514 514
515 // Also try to make sure that we parenthesize the condition properly. 515 // Also try to make sure that we parenthesize the condition properly.
516 bool x = true; 516 bool x = true;
517 MOJO_DCHECK(false || x) << "hello"; 517 MOJO_DCHECK(false || x) << "hello";
518 EXPECT_FALSE(log_message_was_called()); 518 EXPECT_FALSE(log_message_was_called());
519 } 519 }
520 520
521 } // namespace 521 } // namespace
522 } // namespace mojo 522 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/environment/tests/async_waiter_unittest.cc ('k') | mojo/public/cpp/system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698