// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/i18n/timezone.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace base {
namespace {

#if defined(OS_ANDROID)
// icu's timezone utility doesn't work on Android.
#define MAYBE_CountryCodeForCurrentTimezone DISABLED_CountryCodeForCurrentTimezone
#else
#define MAYBE_CountryCodeForCurrentTimezone CountryCodeForCurrentTimezone
#endif

TEST(TimezoneTest, MAYBE_CountryCodeForCurrentTimezone) {
  std::string country_code = CountryCodeForCurrentTimezone();
  EXPECT_EQ(2U, country_code.size());
}

}  // namespace
}  // namespace base

// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/i18n/timezone.h"

#include "testing/gtest/include/gtest/gtest.h"

namespace base {
namespace {

#if defined(OS_ANDROID)
// icu's timezone utility doesn't work on Android.
#define MAYBE_CountryCodeForCurrentTimezone DISABLED_CountryCodeForCurrentTimezone
#else
#define MAYBE_CountryCodeForCurrentTimezone CountryCodeForCurrentTimezone
#endif

TEST(TimezoneTest, MAYBE_CountryCodeForCurrentTimezone) {
  std::string country_code = CountryCodeForCurrentTimezone();
  EXPECT_EQ(2U, country_code.size());
}

}  // namespace
}  // namespace base

Revert 235842 "fix android build by adding build_config.h"
Revert 235842 "fix android build by adding build_config.h"

> fix android build by adding build_config.h
> 
> BUG=none
> TBR=dewittj@chromium.org
> 
> Review URL: https://codereview.chromium.org/75663003

TBR=estade@chromium.org

Review URL: https://codereview.chromium.org/66973004

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@235878 0039d316-1c4b-4281-b951-d872f2087c98
