summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-19 17:52:18 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-19 17:52:18 +0000
commite0edf60e2782fe410c6431481621b4a33d75e4e4 (patch)
tree210e0a6e932d32ef572ca0d33e2c53ec08683be0 /net
parentd9b4adee1e4400fc7eeb13c4658c3596950ae551 (diff)
downloadchromium_src-e0edf60e2782fe410c6431481621b4a33d75e4e4.zip
chromium_src-e0edf60e2782fe410c6431481621b4a33d75e4e4.tar.gz
chromium_src-e0edf60e2782fe410c6431481621b4a33d75e4e4.tar.bz2
Add mime_util and http_chunked_decoder to mac project.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1041 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/mime_util.cc2
-rw-r--r--net/base/mime_util_unittest.cc4
-rw-r--r--net/net.xcodeproj/project.pbxproj6
3 files changed, 9 insertions, 3 deletions
diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc
index 9e98145..78037ce 100644
--- a/net/base/mime_util.cc
+++ b/net/base/mime_util.cc
@@ -63,7 +63,7 @@ class MimeUtil : public PlatformMimeUtil {
const std::string &mime_type) const;
private:
- friend DefaultSingletonTraits<MimeUtil>;
+ friend struct DefaultSingletonTraits<MimeUtil>;
MimeUtil() {
InitializeMimeTypeMaps();
}
diff --git a/net/base/mime_util_unittest.cc b/net/base/mime_util_unittest.cc
index 548601a..4d2f53d 100644
--- a/net/base/mime_util_unittest.cc
+++ b/net/base/mime_util_unittest.cc
@@ -52,7 +52,7 @@ TEST(MimeUtilTest, ExtensionTest) {
std::string mime_type;
bool rv;
- for (size_t i = 0; i < arraysize(tests); ++i) {
+ for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
rv = net::GetMimeTypeFromExtension(tests[i].extension, &mime_type);
EXPECT_EQ(rv, tests[i].valid);
if (rv)
@@ -77,7 +77,7 @@ TEST(MimeUtilTest, FileTest) {
std::string mime_type;
bool rv;
- for (size_t i = 0; i < arraysize(tests); ++i) {
+ for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
rv = net::GetMimeTypeFromFile(tests[i].file_path, &mime_type);
EXPECT_EQ(rv, tests[i].valid);
if (rv)
diff --git a/net/net.xcodeproj/project.pbxproj b/net/net.xcodeproj/project.pbxproj
index e4a736d..9389da0 100644
--- a/net/net.xcodeproj/project.pbxproj
+++ b/net/net.xcodeproj/project.pbxproj
@@ -22,6 +22,9 @@
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
+ 048268070E5B3B1000A30786 /* mime_util.cc in Sources */ = {isa = PBXBuildFile; fileRef = 7BED32AA0E5A181C00A747DB /* mime_util.cc */; };
+ 048268080E5B3B3200A30786 /* http_chunked_decoder_unittest.cc in Sources */ = {isa = PBXBuildFile; fileRef = 7BED33570E5A194700A747DB /* http_chunked_decoder_unittest.cc */; };
+ 048268090E5B3B4800A30786 /* mime_util_unittest.cc in Sources */ = {isa = PBXBuildFile; fileRef = 7BED325E0E5A181C00A747DB /* mime_util_unittest.cc */; };
7B8502040E5A376900730B43 /* libgoogleurl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B8501FE0E5A372500730B43 /* libgoogleurl.a */; };
7B8502050E5A377100730B43 /* auth_cache_unittest.cc in Sources */ = {isa = PBXBuildFile; fileRef = 7BED32790E5A181C00A747DB /* auth_cache_unittest.cc */; };
7B8502120E5A37A800730B43 /* base64_unittest.cc in Sources */ = {isa = PBXBuildFile; fileRef = 7BED32760E5A181C00A747DB /* base64_unittest.cc */; };
@@ -1173,6 +1176,7 @@
7B8504330E5B2E4900730B43 /* mem_backend_impl.cc in Sources */,
7B8504340E5B2E4900730B43 /* mem_entry_impl.cc in Sources */,
7B8504350E5B2E4900730B43 /* mem_rankings.cc in Sources */,
+ 048268070E5B3B1000A30786 /* mime_util.cc in Sources */,
7BA015550E5A1C1000044150 /* net_errors.cc in Sources */,
7B8504390E5B2E5700730B43 /* net_module.cc in Sources */,
7B85043B0E5B2E6400730B43 /* os_file_posix.cc in Sources */,
@@ -1194,6 +1198,8 @@
7B8502120E5A37A800730B43 /* base64_unittest.cc in Sources */,
7BA015210E5A1B9800044150 /* bzip2_filter_unittest.cc in Sources */,
7BA0151F0E5A1B9200044150 /* gzip_filter_unittest.cc in Sources */,
+ 048268080E5B3B3200A30786 /* http_chunked_decoder_unittest.cc in Sources */,
+ 048268090E5B3B4800A30786 /* mime_util_unittest.cc in Sources */,
E4AFA6430E5241B400201347 /* run_all_unittests.cc in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;