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) { | |
pkotwicz
2016/07/20 20:57:04
This is on the border of what should be unit teste
pkotwicz
2016/07/22 20:13:05
Still deferring to Yaron
pkotwicz
2016/07/25 17:35:52
Yaron bump!
Yaron
2016/07/25 18:00:21
Not sure why JNI code is a problem - the Java code
Xi Han
2016/07/25 20:01:37
I would prefer to simply to remove this test. For
| |
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 |