Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |