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

Unified Diff: chrome/browser/chromeos/gdata/gdata_files_unittest.cc

Issue 10857063: gdata: Remove logic to detect incompatibility proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_files.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_files_unittest.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_files_unittest.cc b/chrome/browser/chromeos/gdata/gdata_files_unittest.cc
deleted file mode 100644
index 5db45dd23fd80bc43e95906f9137df9ad1629a4a..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/gdata/gdata_files_unittest.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2012 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 "chrome/browser/chromeos/gdata/gdata_files.h"
-
-#include "chrome/browser/chromeos/gdata/gdata.pb.h"
-#include "chrome/browser/chromeos/gdata/gdata_directory_service.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace gdata {
-namespace {
-
-const char kResumableEditMediaUrl[] = "http://resumable-edit-media/";
-
-}
-
-TEST(GDataEntryTest, FromProto_DetectBadUploadUrl) {
- GDataEntryProto proto;
- proto.set_title("test.txt");
-
- GDataDirectoryService directory_service;
-
- scoped_ptr<GDataEntry> entry(directory_service.CreateGDataFile());
- // This should fail as the upload URL is empty.
- ASSERT_FALSE(entry->FromProto(proto));
-
- // Set a upload URL.
- proto.set_upload_url(kResumableEditMediaUrl);
-
- // This should succeed as the upload URL is set.
- ASSERT_TRUE(entry->FromProto(proto));
- EXPECT_EQ(kResumableEditMediaUrl, entry->upload_url().spec());
-}
-
-} // namespace gdata
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_files.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698