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

Unified Diff: blimp/engine/browser/font_data_fetcher_impl_unittest.cc

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 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 | « blimp/engine/browser/font_data_fetcher_impl.cc ('k') | blimp/engine/common/blimp_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/browser/font_data_fetcher_impl_unittest.cc
diff --git a/blimp/engine/browser/font_data_fetcher_impl_unittest.cc b/blimp/engine/browser/font_data_fetcher_impl_unittest.cc
deleted file mode 100644
index a0d6a09087f5091e596da271a56d021166b306a5..0000000000000000000000000000000000000000
--- a/blimp/engine/browser/font_data_fetcher_impl_unittest.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "blimp/engine/browser/font_data_fetcher_impl.h"
-
-#include <memory>
-
-#include "base/memory/ptr_util.h"
-#include "base/message_loop/message_loop.h"
-#include "base/run_loop.h"
-#include "base/threading/thread.h"
-#include "base/threading/thread_task_runner_handle.h"
-#include "net/base/test_completion_callback.h"
-#include "testing/gmock/include/gmock/gmock.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-using testing::_;
-
-namespace blimp {
-namespace engine {
-
-class FontDataFetcherImplTest : public testing::Test {
- public:
- FontDataFetcherImplTest() {}
- ~FontDataFetcherImplTest() override {}
-
- void SetUp() override {
- font_fetcher_ = base::MakeUnique<FontDataFetcherImpl>(
- base::ThreadTaskRunnerHandle::Get());
- }
-
- void OnFontResponse(std::unique_ptr<SkStream> stream) {
- MockFontResponseCallback(stream);
- }
-
- MOCK_METHOD1(MockFontResponseCallback, void(std::unique_ptr<SkStream> &));
-
- protected:
- // A message loop to emulate asynchronous behavior.
- base::MessageLoop message_loop_;
- std::unique_ptr<FontDataFetcher> font_fetcher_;
- scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
-};
-
-TEST_F(FontDataFetcherImplTest, FetchFontStream) {
- EXPECT_CALL(*this, MockFontResponseCallback(_)).Times(1);
- font_fetcher_->FetchFontStream(
- "fake font hash",
- base::Bind(&FontDataFetcherImplTest::OnFontResponse,
- base::Unretained(this)));
-
- base::RunLoop().RunUntilIdle();
-}
-
-} // namespace engine
-} // namespace blimp
« no previous file with comments | « blimp/engine/browser/font_data_fetcher_impl.cc ('k') | blimp/engine/common/blimp_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698