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

Issue 66213008: Try to fix build more after r234081 / r234112. (Closed)

Created:
7 years, 1 month ago by Nico
Modified:
7 years, 1 month ago
Reviewers:
akalin
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Try to fix build more after r234081 / r234112. It looks like logging.h _always_ defines LOGGING_IS_OFFICIAL_BUILD, it's just defined to 0 or 1. So check for the value of LOGGING_IS_OFFICIAL_BUILD instead of its definedness. BUG=315884 TBR=akalin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234115

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -5 lines) Patch
M base/logging_unittest.cc View 3 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Nico
Committed patchset #1 manually as r234115.
7 years, 1 month ago (2013-11-09 05:37:28 UTC) #1
Nico
7 years, 1 month ago (2013-11-09 05:45:39 UTC) #2
Please do take a look at this.


On Fri, Nov 8, 2013 at 9:37 PM, <thakis@chromium.org> wrote:

> Reviewers: akalin,
>
> Message:
> Committed patchset #1 manually as r234115.
>
> Description:
> Try to fix build more after r234081 / r234112.
>
> It looks like logging.h _always_ defines LOGGING_IS_OFFICIAL_BUILD, it's
> just defined to 0 or 1. So check for the value of LOGGING_IS_OFFICIAL_BUILD
> instead of its definedness.
>
> BUG=315884
> TBR=akalin@chromium.org
>
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234115
>
> Please review this at https://codereview.chromium.org/66213008/
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src
>
> Affected files (+4, -5 lines):
>   M base/logging_unittest.cc
>
>
> Index: base/logging_unittest.cc
> diff --git a/base/logging_unittest.cc b/base/logging_unittest.cc
> index c681253bdb25127e864b87f4412d9c3f9ca0fc21..
> 4996abc2240661939217ad04a9ce6d8d35aa1931 100644
> --- a/base/logging_unittest.cc
> +++ b/base/logging_unittest.cc
> @@ -17,11 +17,11 @@ using ::testing::Return;
>  // Needs to be global since log assert handlers can't maintain state.
>  int log_sink_call_count = 0;
>
> -#if !defined(LOGGING_IS_OFFICIAL_BUILD)
> +#if !LOGGING_IS_OFFICIAL_BUILD
>  void LogSink(const std::string& str) {
>    ++log_sink_call_count;
>  }
> -#endif  // !defined(LOGGING_IS_OFFICIAL_BUILD)
> +#endif  // !LOGGING_IS_OFFICIAL_BUILD
>
>  // Class to make sure any manipulations we do to the min log level are
>  // contained (i.e., do not affect other unit tests).
> @@ -169,7 +169,7 @@ TEST_F(LoggingTest, LoggingIsLazy) {
>  }
>
>  // Official builds have CHECKs directly call BreakDebugger.
> -#if !defined(LOGGING_IS_OFFICIAL_BUILD)
> +#if !LOGGING_IS_OFFICIAL_BUILD
>
>  TEST_F(LoggingTest, CheckStreamsAreLazy) {
>    MockLogSource mock_log_source, uncalled_mock_log_source;
> @@ -204,8 +204,7 @@ TEST_F(LoggingTest, DebugLoggingReleaseBehavior) {
>  TEST_F(LoggingTest, DcheckStreamsAreLazy) {
>    MockLogSource mock_log_source;
>    EXPECT_CALL(mock_log_source, Log()).Times(0);
> -#if !defined(LOGGING_IS_OFFICIAL_BUILD) && defined(NDEBUG) && \
> -    !defined(DCHECK_ALWAYS_ON)
> +#if !LOGGING_IS_OFFICIAL_BUILD && defined(NDEBUG) &&
> !defined(DCHECK_ALWAYS_ON)
>    // Unofficial release build without dcheck enabled.
>    set_dcheck_state(DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
>    DCHECK(mock_log_source.Log()) << mock_log_source.Log();
>
>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698