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

Unified Diff: ios/chrome/test/google_toolbox_unittest.mm

Issue 2173873002: iOS: Re-add bits of GTM we actually use. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix google_toolbox_for_mac.gyp Created 4 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/test/DEPS ('k') | third_party/google_toolbox_for_mac/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/test/google_toolbox_unittest.mm
diff --git a/ios/chrome/test/google_toolbox_unittest.mm b/ios/chrome/test/google_toolbox_unittest.mm
new file mode 100644
index 0000000000000000000000000000000000000000..5f71b806de45a1fe65ca4f525dfaf3d46b43ac00
--- /dev/null
+++ b/ios/chrome/test/google_toolbox_unittest.mm
@@ -0,0 +1,16 @@
+// Copyright (c) 2016 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.
+
+#import <Foundation/Foundation.h>
+
+#include "base/logging.h"
+#include "testing/gtest_mac.h"
+#import "third_party/google_toolbox_for_mac/src/Foundation/GTMNSDictionary+URLArguments.h"
+
+// [NSDictionary gtm_dictionaryWithHttpArgumentsString] is used downstream.
+// This test ensures that we keep compiling the file.
+TEST(GoogleToolboxForMacTest, dictionaryWithHttpArgumentsString) {
+ NSDictionary* dict = [NSDictionary gtm_dictionaryWithHttpArgumentsString:@""];
+ EXPECT_EQ(0u, [dict count]);
+}
« no previous file with comments | « ios/chrome/test/DEPS ('k') | third_party/google_toolbox_for_mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698