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

Side by Side Diff: chrome/browser/android/webapk/manifest_upgrade_detector_unittest.cc

Issue 2124513002: Introduce ManifestUpgradeDetector for WebAPK to detect web manifest changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkotwicz@ and yfriedman@'s comments. 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698