src/base/profiler/module_cache_unittest.cc
TEST(ModuleCacheTest, UnregisterAuxiliaryModuleProvider) {
  ModuleCache cache;

  EXPECT_EQ(nullptr, cache.GetModuleForAddress(1));

  MockModuleProvider auxiliary_provider;
  cache.RegisterAuxiliaryModuleProvider(&auxiliary_provider);
  cache.UnregisterAuxiliaryModuleProvider(&auxiliary_provider);

  EXPECT_EQ(nullptr, cache.GetModuleForAddress(1));
}
// Check that auxiliary provider is no longer used after being unregistered.
Check that auxiliary provider is no longer used after being unregistered.
Check that auxiliary provider is no longer used after being unregistered .
TEST(ModuleCacheTest, UnregisterAuxiliaryModuleProvider) {
  ModuleCache cache;
  EXPECT_EQ(nullptr, cache.GetModuleForAddress(1));
  MockModuleProvider auxiliary_provider;
  cache.RegisterAuxiliaryModuleProvider(&auxiliary_provider);
  cache.UnregisterAuxiliaryModuleProvider(&auxiliary_provider);
  EXPECT_EQ(nullptr, cache.GetModuleForAddress(1));
}
TEST ( ModuleCacheTest , UnregisterAuxiliaryModuleProvider ) { ModuleCache cache ; EXPECT_EQ ( nullptr , cache . GetModuleForAddress ( 1 ) ) ; MockModuleProvider auxiliary_provider ; cache . RegisterAuxiliaryModuleProvider ( & auxiliary_provider ) ; cache . UnregisterAuxiliaryModuleProvider ( & auxiliary_provider ) ; EXPECT_EQ ( nullptr , cache . GetModuleForAddress ( 1 ) ) ; }
Check that auxiliary provider is no longer used after being unregistered.
Check that auxiliary provider is no longer used after being unregistered .