Index: ios/chrome/browser/snapshots/snapshot_cache_unittest.mm |
diff --git a/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm b/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm |
index f5b33efeb2957ee846021d04a1291f9790ba2070..1e33eb09de9a3cf24e6f04b877e7175e1c1c3f34 100644 |
--- a/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm |
+++ b/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm |
@@ -199,8 +199,11 @@ class SnapshotCacheTest : public PlatformTest { |
void TriggerMemoryWarning() { |
// _performMemoryWarning is a private API and must not be compiled into |
// official builds. |
+#pragma clang diagnostic push |
+#pragma clang diagnostic ignored "-Wundeclared-selector" |
[[UIApplication sharedApplication] |
performSelector:@selector(_performMemoryWarning)]; |
+#pragma clang diagnostic pop |
} |
web::TestWebThreadBundle thread_bundle_; |