| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #include "chrome/browser/android/webapk/manifest_upgrade_detector.h" |
| 6 #include "content/public/common/manifest.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 |
| 9 using ManifestUpgradeDetectorTest = testing::Test; |
| 10 |
| 11 TEST_F(ManifestUpgradeDetectorTest, |
| 12 OnDidGetManifestReturnsFalseWhenTheFetchedManifestUrlIsEmpty) { |
| 13 ManifestUpgradeDetector detector(nullptr, jobject(), nullptr, GURL(), GURL()); |
| 14 EXPECT_EQ(ManifestUpgradeDetector::NoErrorDetected, detector.error_code()); |
| 15 |
| 16 content::Manifest manifest; |
| 17 detector.OnDidGetManifest(GURL(), manifest); |
| 18 EXPECT_EQ(ManifestUpgradeDetector::FetchedManifestEmpty, |
| 19 detector.error_code()); |
| 20 } |
| OLD | NEW |