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

Unified Diff: base/process_util_unittest_ios.cc

Issue 10698149: Add minimal support for process_utils on iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@all-ios-tweak
Patch Set: Created 8 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
« base/process_util_ios.mm ('K') | « base/process_util_ios.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_unittest_ios.cc
diff --git a/base/process_util_unittest_ios.cc b/base/process_util_unittest_ios.cc
new file mode 100644
index 0000000000000000000000000000000000000000..818c07e71cfecb25c958cdd6f316519bfad3dcac
--- /dev/null
+++ b/base/process_util_unittest_ios.cc
@@ -0,0 +1,14 @@
+// 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 "base/memory/scoped_ptr.h"
+#include "base/process_util.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+TEST(ProcessUtilTestIos, Memory) {
+ scoped_ptr<base::ProcessMetrics> process_metrics(
+ base::ProcessMetrics::CreateProcessMetrics(NULL, NULL));
Mark Mentovai 2012/07/11 12:36:51 You should at least pretend to do the right thing
stuartmorgan 2012/07/11 13:56:57 Done.
+
+ ASSERT_NE(0u, process_metrics->GetWorkingSetSize());
+}
« base/process_util_ios.mm ('K') | « base/process_util_ios.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698