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

Unified Diff: chrome/browser/google_apis/gdata_util_unittest.cc

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename google_api directory to google_apis Created 8 years, 3 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
Index: chrome/browser/google_apis/gdata_util_unittest.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_util_unittest.cc b/chrome/browser/google_apis/gdata_util_unittest.cc
similarity index 96%
rename from chrome/browser/chromeos/gdata/gdata_util_unittest.cc
rename to chrome/browser/google_apis/gdata_util_unittest.cc
index 2fbbf6fb22d4c295efc187f4d3debc4cb97c2060..19737745feb5f1b771cff1fd3ee39910f4d1c762 100644
--- a/chrome/browser/chromeos/gdata/gdata_util_unittest.cc
+++ b/chrome/browser/google_apis/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_apis/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)
kochi 2012/09/07 06:56:21 Please add TODO(yoshiki): Find platform independen
nhiroki 2012/09/07 09:06:26 Done.
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};

Powered by Google App Engine
This is Rietveld 408576698