| Index: chrome/browser/google_api/gdata_util_unittest.cc
|
| diff --git a/chrome/browser/chromeos/gdata/gdata_util_unittest.cc b/chrome/browser/google_api/gdata_util_unittest.cc
|
| similarity index 96%
|
| rename from chrome/browser/chromeos/gdata/gdata_util_unittest.cc
|
| rename to chrome/browser/google_api/gdata_util_unittest.cc
|
| index 2fbbf6fb22d4c295efc187f4d3debc4cb97c2060..13247f5ea13fcc2eb3fa76fa887ba56315316f27 100644
|
| --- a/chrome/browser/chromeos/gdata/gdata_util_unittest.cc
|
| +++ b/chrome/browser/google_api/gdata_util_unittest.cc
|
| @@ -2,14 +2,17 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/chromeos/gdata/gdata_util.h"
|
| +#include "chrome/browser/google_api/gdata_util.h"
|
|
|
| #include "base/i18n/time_formatting.h"
|
| #include "base/time.h"
|
| #include "base/utf_string_conversions.h"
|
| -#include "chrome/browser/chromeos/system/timezone_settings.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| +#if defined(CHROMEOS)
|
| +#include "chrome/browser/chromeos/system/timezone_settings.h"
|
| +#endif
|
| +
|
| namespace gdata {
|
| namespace util {
|
| namespace {
|
| @@ -20,6 +23,7 @@ std::string FormatTime(const base::Time& time) {
|
|
|
| } // namespace
|
|
|
| +#if defined(CHROMEOS)
|
| TEST(GDataUtilTest, GetTimeFromStringLocalTimezone) {
|
| // Creates time object GMT.
|
| base::Time::Exploded exploded = {2012, 7, 0, 14, 1, 3, 21, 151};
|
| @@ -85,6 +89,7 @@ TEST(GDataUtilTest, GetTimeFromString) {
|
| EXPECT_EQ(FormatTime(base::Time::FromUTCExploded(target_time3)),
|
| FormatTime(test_time));
|
| }
|
| +#endif
|
|
|
| TEST(GDataUtilTest, FormatTimeAsString) {
|
| base::Time::Exploded exploded_time = {2012, 7, 0, 19, 15, 59, 13, 123};
|
|
|