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

Unified Diff: device/sensors/data_fetcher_shared_memory_base_unittest.cc

Issue 2743493003: [Device Sensors] Fix crash on shutdown (Closed)
Patch Set: Fix unittest Created 3 years, 9 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
« no previous file with comments | « device/sensors/data_fetcher_shared_memory_base.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensors/data_fetcher_shared_memory_base_unittest.cc
diff --git a/device/sensors/data_fetcher_shared_memory_base_unittest.cc b/device/sensors/data_fetcher_shared_memory_base_unittest.cc
index 910f8babe9a571bac810e68bd1bf91e4446e0f28..2f01f707e2f0227a8734bd055d8dba1c3082bcfb 100644
--- a/device/sensors/data_fetcher_shared_memory_base_unittest.cc
+++ b/device/sensors/data_fetcher_shared_memory_base_unittest.cc
@@ -53,7 +53,7 @@ class FakeDataFetcher : public DataFetcherSharedMemoryBase {
motion_buffer_(nullptr),
orientation_buffer_(nullptr),
orientation_absolute_buffer_(nullptr) {}
- ~FakeDataFetcher() override {}
+ ~FakeDataFetcher() override { Shutdown(); }
bool Init(ConsumerType consumer_type, void* buffer) {
EXPECT_TRUE(buffer);
« no previous file with comments | « device/sensors/data_fetcher_shared_memory_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698