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

Unified Diff: components/offline_pages/downloads/download_notifying_observer_unittest.cc

Issue 2342443006: [Offline pages] Use the new policy bits (Closed)
Patch Set: i think i got it! Made sure it compiles Created 4 years, 2 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
Index: components/offline_pages/downloads/download_notifying_observer_unittest.cc
diff --git a/components/offline_pages/downloads/download_notifying_observer_unittest.cc b/components/offline_pages/downloads/download_notifying_observer_unittest.cc
index d28759984ad7973a52e2b79dfbb6740736fe9362..0ebeaadf664543cae3266f632372b5be9ac44095 100644
--- a/components/offline_pages/downloads/download_notifying_observer_unittest.cc
+++ b/components/offline_pages/downloads/download_notifying_observer_unittest.cc
@@ -7,6 +7,7 @@
#include "base/memory/ptr_util.h"
#include "components/offline_pages/background/save_page_request.h"
#include "components/offline_pages/client_namespace_constants.h"
+#include "components/offline_pages/client_policy_controller.h"
#include "components/offline_pages/downloads/offline_page_download_notifier.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -112,6 +113,7 @@ class DownloadNotifyingObserverTest : public testing::Test {
private:
TestNotifier* notifier_;
std::unique_ptr<DownloadNotifyingObserver> observer_;
+ std::unique_ptr<ClientPolicyController> policy_controller_;
};
DownloadNotifyingObserverTest::DownloadNotifyingObserverTest() {}
@@ -120,8 +122,10 @@ DownloadNotifyingObserverTest::~DownloadNotifyingObserverTest() {}
void DownloadNotifyingObserverTest::SetUp() {
std::unique_ptr<TestNotifier> notifier(new TestNotifier);
+ policy_controller_.reset(new ClientPolicyController());
notifier_ = notifier.get();
- observer_.reset(new DownloadNotifyingObserver(std::move(notifier)));
+ observer_.reset(new DownloadNotifyingObserver(std::move(notifier),
+ policy_controller_.get()));
}
TEST_F(DownloadNotifyingObserverTest, OnAdded) {

Powered by Google App Engine
This is Rietveld 408576698