OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import <Foundation/Foundation.h> | 5 #import <Foundation/Foundation.h> |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "testing/gtest_mac.h" | 8 #import "testing/gtest_mac.h" |
9 #import "third_party/google_toolbox_for_mac/src/Foundation/GTMNSDictionary+URLAr
guments.h" | 9 #import "third_party/google_toolbox_for_mac/src/Foundation/GTMNSDictionary+URLAr
guments.h" |
10 | 10 |
11 #if !defined(__has_feature) || !__has_feature(objc_arc) | 11 #if !defined(__has_feature) || !__has_feature(objc_arc) |
12 #error "This file requires ARC support." | 12 #error "This file requires ARC support." |
13 #endif | 13 #endif |
14 | 14 |
15 // [NSDictionary gtm_dictionaryWithHttpArgumentsString] is used downstream. | 15 // [NSDictionary gtm_dictionaryWithHttpArgumentsString] is used downstream. |
16 // This test ensures that we keep compiling the file. | 16 // This test ensures that we keep compiling the file. |
17 TEST(GoogleToolboxForMacTest, dictionaryWithHttpArgumentsString) { | 17 TEST(GoogleToolboxForMacTest, dictionaryWithHttpArgumentsString) { |
18 NSDictionary* dict = [NSDictionary gtm_dictionaryWithHttpArgumentsString:@""]; | 18 NSDictionary* dict = [NSDictionary gtm_dictionaryWithHttpArgumentsString:@""]; |
19 EXPECT_EQ(0u, [dict count]); | 19 EXPECT_EQ(0u, [dict count]); |
20 } | 20 } |
OLD | NEW |