Code:    void CloseTabsAndExpectNotifications(
       TabStripModel* tab_strip_model,
       std::vector<LifecycleUnit*> lifecycle_units) {
    std::vector<std::unique_ptr<testing::StrictMock<MockLifecycleUnitObserver>>>
         observers;
     for (LifecycleUnit* lifecycle_unit : lifecycle_units) {
       observers.emplace_back(
          std::make_unique<testing::StrictMock<MockLifecycleUnitObserver>>());
       lifecycle_unit->AddObserver(observers.back().get());
       EXPECT_CALL(*observers.back().get(),
                   OnLifecycleUnitDestroyed(lifecycle_unit));
    }
    tab_strip_model->CloseAllTabs();
  }

Commit Message: Connect the LocalDB to TabManager.

Bug: 773382
Change-Id: Iec8fe5226ee175105d51f300f30b4865478ac099
Reviewed-on: https://chromium-review.googlesource.com/1118611
Commit-Queue: Sébastien Marchand <sebmarchand@chromium.org>
Reviewed-by: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#572871}
CWE ID: 
   void CloseTabsAndExpectNotifications(
       TabStripModel* tab_strip_model,
       std::vector<LifecycleUnit*> lifecycle_units) {
    std::vector<
        std::unique_ptr<::testing::StrictMock<MockLifecycleUnitObserver>>>
         observers;
     for (LifecycleUnit* lifecycle_unit : lifecycle_units) {
       observers.emplace_back(
          std::make_unique<::testing::StrictMock<MockLifecycleUnitObserver>>());
       lifecycle_unit->AddObserver(observers.back().get());
       EXPECT_CALL(*observers.back().get(),
                   OnLifecycleUnitDestroyed(lifecycle_unit));
    }
    tab_strip_model->CloseAllTabs();
  }
