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

Side by Side Diff: chrome/browser/google_apis/request_util_unittest.cc

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/google_apis/request_util.cc ('k') | chrome/browser/google_apis/task_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/google_apis/request_util.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 namespace google_apis {
10 namespace util {
11
12 TEST(GenerateIfMatchHeaderTest, GenerateIfMatchHeader) {
13 // The header matched to all etag should be returned for empty etag.
14 EXPECT_EQ("If-Match: *", GenerateIfMatchHeader(std::string()));
15
16 // Otherwise, the returned header should be matched to the given etag.
17 EXPECT_EQ("If-Match: abcde", GenerateIfMatchHeader("abcde"));
18 EXPECT_EQ("If-Match: fake_etag", GenerateIfMatchHeader("fake_etag"));
19 }
20
21 } // namespace util
22 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/request_util.cc ('k') | chrome/browser/google_apis/task_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698