
Much of process_utils isn't meaningful on iOS, but this provides enough to support unit tests and minimal metrics. BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10698149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146123 0039d316-1c4b-4281-b951-d872f2087c98
16 lines
525 B
C++
16 lines
525 B
C++
// 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(
|
|
base::GetCurrentProcessHandle()));
|
|
|
|
ASSERT_NE(0u, process_metrics->GetWorkingSetSize());
|
|
}
|