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

Unified Diff: chrome/browser/chromeos/arc/arc_navigation_throttle_unittest.cc

Issue 2441563002: arc: Create intermediate directories in c/b/c/arc (Closed)
Patch Set: Moved the boot notification to notification/ 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: chrome/browser/chromeos/arc/arc_navigation_throttle_unittest.cc
diff --git a/chrome/browser/chromeos/arc/arc_navigation_throttle_unittest.cc b/chrome/browser/chromeos/arc/arc_navigation_throttle_unittest.cc
deleted file mode 100644
index 759a2556d52aed6728419f39f72b657e2bf96e0e..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/arc/arc_navigation_throttle_unittest.cc
+++ /dev/null
@@ -1,41 +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 "chrome/browser/chromeos/arc/arc_navigation_throttle.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "url/gurl.h"
-
-namespace arc {
-
-TEST(ArcNavigationThrottleTest, TestShouldOverrideUrlLoading) {
- // A navigation within the same domain shouldn't be overridden.
- EXPECT_FALSE(ArcNavigationThrottle::ShouldOverrideUrlLoadingForTesting(
- GURL("http://google.com"), GURL("http://google.com/")));
- EXPECT_FALSE(ArcNavigationThrottle::ShouldOverrideUrlLoadingForTesting(
- GURL("http://google.com"), GURL("http://a.google.com/")));
- EXPECT_FALSE(ArcNavigationThrottle::ShouldOverrideUrlLoadingForTesting(
- GURL("http://a.google.com"), GURL("http://google.com/")));
- EXPECT_FALSE(ArcNavigationThrottle::ShouldOverrideUrlLoadingForTesting(
- GURL("http://a.google.com"), GURL("http://b.google.com/")));
- EXPECT_FALSE(ArcNavigationThrottle::ShouldOverrideUrlLoadingForTesting(
- GURL("http://a.google.com"), GURL("http://b.c.google.com/")));
- EXPECT_FALSE(ArcNavigationThrottle::ShouldOverrideUrlLoadingForTesting(
- GURL("http://a.b.google.com"), GURL("http://c.google.com/")));
-
- // If either of two paramters is empty, the function should return false.
- EXPECT_FALSE(ArcNavigationThrottle::ShouldOverrideUrlLoadingForTesting(
- GURL(), GURL("http://a.google.com/")));
- EXPECT_FALSE(ArcNavigationThrottle::ShouldOverrideUrlLoadingForTesting(
- GURL("http://a.google.com/"), GURL()));
- EXPECT_FALSE(ArcNavigationThrottle::ShouldOverrideUrlLoadingForTesting(
- GURL(), GURL()));
-
- // A navigation not within the same domain can be overridden.
- EXPECT_TRUE(ArcNavigationThrottle::ShouldOverrideUrlLoadingForTesting(
- GURL("http://www.google.com"), GURL("http://www.not-google.com/")));
- EXPECT_TRUE(ArcNavigationThrottle::ShouldOverrideUrlLoadingForTesting(
- GURL("http://www.not-google.com"), GURL("http://www.google.com/")));
-}
-
-} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698