Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / search / most_visited_iframe_source_unittest.cc
blobf330913c6ba3bb723ac0d4bac6fb19e32c8c7d35
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/bind.h"
6 #include "base/metrics/histogram.h"
7 #include "base/metrics/statistics_recorder.h"
8 #include "base/strings/stringprintf.h"
9 #include "chrome/browser/search/most_visited_iframe_source.h"
10 #include "testing/gtest/include/gtest/gtest.h"
12 class MostVisitedIframeSourceTest : public testing::Test {
13 public:
14 void ExpectNullData(base::RefCountedMemory* data) {
15 EXPECT_EQ(NULL, data);
18 protected:
19 MostVisitedIframeSource* source() { return source_.get(); }
21 private:
22 void SetUp() override { source_.reset(new MostVisitedIframeSource()); }
24 scoped_ptr<MostVisitedIframeSource> source_;