Home
last modified time | relevance | path

Searched refs:collector_ (Results 1 – 6 of 6) sorted by relevance

/system/core/crash_reporter/
Dkernel_collector_test.cc61 KernelCollectorMock collector_; member in KernelCollectorTest
68 EXPECT_CALL(collector_, SetUpDBus()).WillRepeatedly(testing::Return()); in SetUp()
70 collector_.Initialize(CountCrash, IsMetrics); in SetUp()
74 collector_.OverridePreservedDumpPath(test_kcrash_); in SetUp()
91 EXPECT_NE(KernelCollector::kArchUnknown, collector_.arch()); in TEST_F()
101 ASSERT_TRUE(collector_.LoadParameters()); in TEST_F()
102 ASSERT_TRUE(collector_.LoadPreservedDump(&dump)); in TEST_F()
106 ASSERT_TRUE(collector_.LoadParameters()); in TEST_F()
107 ASSERT_TRUE(collector_.LoadPreservedDump(&dump)); in TEST_F()
111 ASSERT_TRUE(collector_.LoadParameters()); in TEST_F()
[all …]
Duser_collector_test.cc59 EXPECT_CALL(collector_, SetUpDBus()).WillRepeatedly(testing::Return()); in SetUp()
61 collector_.Initialize(CountCrash, in SetUp()
89 UserCollectorMock collector_; member in UserCollectorTest
100 EXPECT_TRUE(collector_.ParseCrashAttributes("123456:11:1000:2000:foobar", in TEST_F()
107 EXPECT_TRUE(collector_.ParseCrashAttributes("4321:6:barfoo", in TEST_F()
115 EXPECT_FALSE(collector_.ParseCrashAttributes("123456:11", in TEST_F()
118 EXPECT_TRUE(collector_.ParseCrashAttributes("123456:11:exec:extra", in TEST_F()
122 EXPECT_FALSE(collector_.ParseCrashAttributes("12345p:11:foobar", in TEST_F()
125 EXPECT_FALSE(collector_.ParseCrashAttributes("123456:1 :foobar", in TEST_F()
128 EXPECT_FALSE(collector_.ParseCrashAttributes("123456::foobar", in TEST_F()
[all …]
Dunclean_shutdown_collector_test.cc55 EXPECT_CALL(collector_, SetUpDBus()).WillRepeatedly(testing::Return()); in SetUp()
57 collector_.Initialize(CountCrash, in SetUp()
65 collector_.unclean_shutdown_file_ = test_unclean_.value().c_str(); in SetUp()
68 collector_.powerd_suspended_file_ = in SetUp()
79 UncleanShutdownCollectorMock collector_; member in UncleanShutdownCollectorTest
88 ASSERT_TRUE(collector_.Enable()); in TEST_F()
94 ASSERT_TRUE(collector_.Enable()); in TEST_F()
99 collector_.unclean_shutdown_file_ = "/bad/path"; in TEST_F()
100 ASSERT_FALSE(collector_.Enable()); in TEST_F()
105 ASSERT_TRUE(collector_.Enable()); in TEST_F()
[all …]
Dcrash_collector_test.cc53 EXPECT_CALL(collector_, SetUpDBus()).WillRepeatedly(Return()); in SetUp()
55 collector_.Initialize(CountCrash, IsMetrics); in SetUp()
63 CrashCollectorMock collector_; member in CrashCollectorTest
70 ASSERT_TRUE(CountCrash == collector_.count_crash_function_); in TEST_F()
71 ASSERT_TRUE(IsMetrics == collector_.is_feedback_allowed_function_); in TEST_F()
78 collector_.WriteNewFile(test_file, in TEST_F()
81 EXPECT_LT(collector_.WriteNewFile(test_file, in TEST_F()
87 EXPECT_EQ("chrome", collector_.Sanitize("chrome")); in TEST_F()
88 EXPECT_EQ("CHROME", collector_.Sanitize("CHROME")); in TEST_F()
89 EXPECT_EQ("1chrome2", collector_.Sanitize("1chrome2")); in TEST_F()
[all …]
Dudev_collector_test.cc87 collector_.HandleCrash(udev_event); in HandleCrash()
94 collector_.dev_coredump_directory_.c_str(), in GenerateDevCoredump()
98 collector_.dev_coredump_directory_.c_str(), in GenerateDevCoredump()
107 collector_.dev_coredump_directory_.c_str(), in GenerateDevCoredump()
111 collector_.dev_coredump_directory_.c_str(), in GenerateDevCoredump()
123 EXPECT_CALL(collector_, SetUpDBus()).WillRepeatedly(testing::Return()); in SetUp()
125 collector_.Initialize(CountCrash, IsMetrics); in SetUp()
131 collector_.log_config_path_ = log_config_path; in SetUp()
132 collector_.ForceCrashDirectory(temp_dir_generator_.path()); in SetUp()
136 collector_.dev_coredump_directory_ = dev_coredump_path.value(); in SetUp()
[all …]
/system/core/metricsd/collectors/
Daveraged_statistics_collector_test.cc45 collector_.reset(new AveragedStatisticsCollector( in SetUp()
66 std::unique_ptr<AveragedStatisticsCollector> collector_; member in AveragedStatisticsTest
80 ASSERT_TRUE(collector_->DiskStatsReadStats(&read_sectors_now, in TEST_F()
86 ASSERT_TRUE(collector_->DiskStatsReadStats(&read_sectors_now, in TEST_F()
96 EXPECT_TRUE(collector_->VmStatsParseStats(kVmStats, &stats)); in TEST_F()