summaryrefslogtreecommitdiffstats
path: root/base/process/process_metrics_unittest_ios.cc
blob: 3e1ca35b18c746e4e435fee6c46d0e3b0d087c52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2013 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/process/process_metrics.h"

#include "base/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"

TEST(ProcessMetricsTestIos, Memory) {
  scoped_ptr<base::ProcessMetrics> process_metrics(
      base::ProcessMetrics::CreateProcessMetrics(
          base::GetCurrentProcessHandle()));

  ASSERT_NE(0u, process_metrics->GetWorkingSetSize());
}