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

Side by Side Diff: ios/chrome/browser/native_app_launcher/native_app_infobar_delegate_unittest.mm

Issue 2508663002: [ios] Move NativeAppLauncher upstream (Closed)
Patch Set: Unittests, CL Feedback Created 4 years, 1 month 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 2013 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 #import "ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.h"
6
7 #include <memory>
8
9 #import "ios/public/provider/chrome/browser/native_app_launcher/native_app_types .h"
10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "testing/platform_test.h"
12
13 namespace {
14
15 class NativeAppInfoBarDelegateTest : public PlatformTest {
16 protected:
17 std::unique_ptr<NativeAppInfoBarDelegate> delegate_;
18 };
19
20 TEST_F(NativeAppInfoBarDelegateTest, TestConstructor) {
21 delegate_.reset(new NativeAppInfoBarDelegate(
sdefresne 2016/11/21 08:46:04 I think you don't need a class with a member varia
sczs1 2016/11/21 17:43:00 Thanks Sylvain, I modified the test as you suggest
22 nil, GURL(), NATIVE_APP_INSTALLER_CONTROLLER));
23 EXPECT_TRUE(delegate_.get());
24 delegate_.reset(new NativeAppInfoBarDelegate(nil, GURL(),
25 NATIVE_APP_LAUNCHER_CONTROLLER));
26 EXPECT_TRUE(delegate_.get());
27 delegate_.reset(new NativeAppInfoBarDelegate(
28 nil, GURL(), NATIVE_APP_OPEN_POLICY_CONTROLLER));
29 EXPECT_TRUE(delegate_.get());
30 }
31
32 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698