Fix build break
[chromium-blink-merge.git] / chrome / browser / google_apis / operation_util_unittest.cc
blob14e4c5dd2b5125243412eaa1f0f20e1c23644e36
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.
5 #include "chrome/browser/google_apis/operation_util.h"
7 #include "testing/gtest/include/gtest/gtest.h"
9 namespace google_apis {
10 namespace util {
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()));
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"));
21 } // namespace util
22 } // namespace google_apis