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

Unified Diff: blimp/client/core/blimp_navigation_controller_impl_unittest.cc

Issue 2166563003: Split //blimp/client/core to relevant parts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-assignment-source
Patch Set: Created 4 years, 5 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/client/core/blimp_navigation_controller_impl.cc ('k') | blimp/client/core/contents/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/blimp_navigation_controller_impl_unittest.cc
diff --git a/blimp/client/core/blimp_navigation_controller_impl_unittest.cc b/blimp/client/core/blimp_navigation_controller_impl_unittest.cc
deleted file mode 100644
index 2b2d7319e240526ed646ed8a69c00952ecbd938e..0000000000000000000000000000000000000000
--- a/blimp/client/core/blimp_navigation_controller_impl_unittest.cc
+++ /dev/null
@@ -1,49 +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/client/core/blimp_navigation_controller_impl.h"
-
-#include "base/macros.h"
-#include "base/message_loop/message_loop.h"
-#include "blimp/client/core/blimp_navigation_controller_delegate.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace blimp {
-namespace client {
-namespace {
-
-const GURL kExampleURL = GURL("https://www.example.com/");
-
-class TestBlimpNavigationControllerDelegate
- : public BlimpNavigationControllerDelegate {
- public:
- TestBlimpNavigationControllerDelegate() = default;
- ~TestBlimpNavigationControllerDelegate() override = default;
-
- void NotifyURLLoaded(const GURL& url) override { last_loaded_url_ = url; }
-
- GURL GetLastLoadedURL() { return last_loaded_url_; }
-
- private:
- GURL last_loaded_url_;
-
- DISALLOW_COPY_AND_ASSIGN(TestBlimpNavigationControllerDelegate);
-};
-
-TEST(BlimpNavigationControllerImplTest, Basic) {
- base::MessageLoop loop;
-
- TestBlimpNavigationControllerDelegate delegate;
- BlimpNavigationControllerImpl navigation_controller(&delegate);
-
- navigation_controller.LoadURL(kExampleURL);
- EXPECT_EQ(kExampleURL, navigation_controller.GetURL());
-
- loop.RunUntilIdle();
- EXPECT_EQ(kExampleURL, delegate.GetLastLoadedURL());
-}
-
-} // namespace
-} // namespace client
-} // namespace blimp
« no previous file with comments | « blimp/client/core/blimp_navigation_controller_impl.cc ('k') | blimp/client/core/contents/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698