Home | History | Annotate | Download | only in location_bar
      1 // Copyright (c) 2010 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 "chrome/browser/ui/cocoa/cocoa_test_helper.h"
      6 #import "chrome/browser/ui/cocoa/location_bar/instant_opt_in_view.h"
      7 
      8 namespace {
      9 
     10 class InstantOptInViewTest : public CocoaTest {
     11  public:
     12   InstantOptInViewTest() {
     13     NSRect content_frame = [[test_window() contentView] frame];
     14     scoped_nsobject<InstantOptInView> view(
     15         [[InstantOptInView alloc] initWithFrame:content_frame]);
     16     view_ = view.get();
     17     [[test_window() contentView] addSubview:view_];
     18   }
     19 
     20   InstantOptInView* view_;  // Weak. Owned by the view hierarchy.
     21 };
     22 
     23 // Tests display, add/remove.
     24 TEST_VIEW(InstantOptInViewTest, view_);
     25 
     26 }  // namespace
     27