blob: 8dd5840a0a3824db34cda63d5e46ea4c36ccca97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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/drive_file_formats.h"
#include "base/file_path.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gdata {
TEST(DriveFileFormatsTest, GetDriveFileFormat) {
EXPECT_EQ(FILE_FORMAT_JPG, GetDriveFileFormat(FILE_PATH_LITERAL(".jpg")));
EXPECT_EQ(FILE_FORMAT_JPG, GetDriveFileFormat(FILE_PATH_LITERAL(".JPG")));
EXPECT_EQ(FILE_FORMAT_OTHER, GetDriveFileFormat(FILE_PATH_LITERAL(".XXX")));
}
} // namespace gdata
|