1 // Copyright 2017 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "base/process/process_info.h" 6 7 #include "base/time/time.h" 8 #include "build/build_config.h" 9 #include "testing/gtest/include/gtest/gtest.h" 10 11 namespace base { 12 13 // See https://crbug.com/726484 for Fuchsia. 14 // Cannot read boot time on Android O, crbug.com/788870. 15 #if !defined(OS_IOS) && !defined(OS_FUCHSIA) && !defined(OS_ANDROID) TEST(ProcessInfoTest,CreationTime)16TEST(ProcessInfoTest, CreationTime) { 17 Time creation_time = CurrentProcessInfo::CreationTime(); 18 ASSERT_FALSE(creation_time.is_null()); 19 } 20 #endif // !defined(OS_IOS) && !defined(OS_FUCHSIA) && !defined(OS_ANDROID) 21 22 } // namespace base 23